Documentation ¶
Index ¶
- Constants
- type PostgresPartnershipRepository
- func (repo PostgresPartnershipRepository) CreatePartnership(partnership *businesslogic.Partnership) error
- func (repo PostgresPartnershipRepository) DeletePartnership(partnership businesslogic.Partnership) error
- func (repo PostgresPartnershipRepository) SearchPartnership(criteria businesslogic.SearchPartnershipCriteria) ([]businesslogic.Partnership, error)
- func (repo PostgresPartnershipRepository) UpdatePartnership(partnership businesslogic.Partnership) error
- type PostgresPartnershipRequestBlacklistReasonRepository
- type PostgresPartnershipRequestBlacklistRepository
- func (repo PostgresPartnershipRequestBlacklistRepository) CreatePartnershipRequestBlacklist(blacklist *businesslogic.PartnershipRequestBlacklistEntry) error
- func (repo PostgresPartnershipRequestBlacklistRepository) DeletePartnershipRequestBlacklist(blacklist businesslogic.PartnershipRequestBlacklistEntry) error
- func (repo PostgresPartnershipRequestBlacklistRepository) SearchPartnershipRequestBlacklist(criteria businesslogic.SearchPartnershipRequestBlacklistCriteria) ([]businesslogic.PartnershipRequestBlacklistEntry, error)
- func (repo PostgresPartnershipRequestBlacklistRepository) UpdatePartnershipRequestBlacklist(blacklist businesslogic.PartnershipRequestBlacklistEntry) error
- type PostgresPartnershipRequestRepository
- func (repo PostgresPartnershipRequestRepository) CreatePartnershipRequest(request *businesslogic.PartnershipRequest) error
- func (repo PostgresPartnershipRequestRepository) DeletePartnershipRequest(request businesslogic.PartnershipRequest) error
- func (repo PostgresPartnershipRequestRepository) GetReceivedRequests(recipientID int) ([]businesslogic.PartnershipRequest, error)
- func (repo PostgresPartnershipRequestRepository) GetSentRequests(senderID int) ([]businesslogic.PartnershipRequest, error)
- func (repo PostgresPartnershipRequestRepository) SearchPartnershipRequest(criteria businesslogic.SearchPartnershipRequestCriteria) ([]businesslogic.PartnershipRequest, error)
- func (repo PostgresPartnershipRequestRepository) UpdatePartnershipRequest(request businesslogic.PartnershipRequest) error
- type PostgresPartnershipRequestStatusRepository
- type PostgresPartnershipRoleRepository
- type PostgresPartnershipStatusRepository
Constants ¶
View Source
const ( DasPartnershipRequestBlacklistTable = "DAS.PARTNERSHIP_REQUEST_BLACKLIST" DasPartnershipRequestBlacklistColumnReporterID = "REPORTER_ID" DasPartnershipRequestBlacklistColumnBlockedUserID = "BLOCKED_USER_ID" DasPartnershipRequestBlacklistColumnBlacklistReasonID = "BLACKLIST_REASON_ID" DAS_PARTNERSHIP_REQUEST_BLACKLIST_COL_DETAIL = "DETAIL" DAS_PARTNERSHIP_REQUEST_BLACKLIST_COL_WHITELISTED_IND = "WHITELISTED_IND" )
View Source
const ( DasPartnershipTable = "DAS.PARTNERSHIP" DAS_PARTNERSHIP_REQUEST_BLACKLIST_REASON_TABLE = "DAS.PARTNERSHIP_REQUEST_BLACKLIST_REASON" )
View Source
const ( DAS_PARTNERSHIP_REQUEST_TABLE = "DAS.PARTNERSHIP_REQUEST" DAS_PARTNERSHIP_REQUEST_COL_SENDER_ID = "SENDER_ID" DAS_PARTNERSHIP_REQUEST_COL_RECIPIEINT_ID = "RECIPIENT_ID" DAS_PARTNERSHIP_REQUEST_COL_SENDER_ROLE = "SENDER_ROLE" DAS_PARTNERSHIP_REQUEST_COL_RECIPIENT_ROLE = "RECIPIENT_ROLE" DAS_PARTNERSHIP_REQUEST_COL_MESSAGE = "MESSAGE" DAS_PARTNERSHIP_REQUEST_COL_REQUEST_STATUS = "REQUEST_STATUS" )
View Source
const ( DAS_PARTNERSHIP_REQUEST_STATUS_TABLE = "DAS.PARTNERSHIP_REQUEST_STATUS" DAS_PARTNERSHIP_REQUEST_STATUS_COL_REQUEST_STATUS_ID = "REQUEST_STATUS_ID" DAS_PARTNERSHIP_REQUEST_STATUS_COL_CODE = "CODE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresPartnershipRepository ¶
type PostgresPartnershipRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
PostgresPartnershipRepository implements IPartnershipRepository
func (PostgresPartnershipRepository) CreatePartnership ¶
func (repo PostgresPartnershipRepository) CreatePartnership(partnership *businesslogic.Partnership) error
CreatePartnership creates the specified partnership in Postgres database and updates the ID
func (PostgresPartnershipRepository) DeletePartnership ¶
func (repo PostgresPartnershipRepository) DeletePartnership(partnership businesslogic.Partnership) error
func (PostgresPartnershipRepository) SearchPartnership ¶
func (repo PostgresPartnershipRepository) SearchPartnership(criteria businesslogic.SearchPartnershipCriteria) ([]businesslogic.Partnership, error)
SearchPartnership searches partnerships in a Postgres database based on the criteria of search
func (PostgresPartnershipRepository) UpdatePartnership ¶
func (repo PostgresPartnershipRepository) UpdatePartnership(partnership businesslogic.Partnership) error
type PostgresPartnershipRequestBlacklistReasonRepository ¶
type PostgresPartnershipRequestBlacklistReasonRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresPartnershipRequestBlacklistReasonRepository) GetPartnershipRequestBlacklistReasons ¶
func (repo PostgresPartnershipRequestBlacklistReasonRepository) GetPartnershipRequestBlacklistReasons() ([]businesslogic.PartnershipRequestBlacklistReason, error)
type PostgresPartnershipRequestBlacklistRepository ¶
type PostgresPartnershipRequestBlacklistRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresPartnershipRequestBlacklistRepository) CreatePartnershipRequestBlacklist ¶
func (repo PostgresPartnershipRequestBlacklistRepository) CreatePartnershipRequestBlacklist(blacklist *businesslogic.PartnershipRequestBlacklistEntry) error
func (PostgresPartnershipRequestBlacklistRepository) DeletePartnershipRequestBlacklist ¶
func (repo PostgresPartnershipRequestBlacklistRepository) DeletePartnershipRequestBlacklist(blacklist businesslogic.PartnershipRequestBlacklistEntry) error
func (PostgresPartnershipRequestBlacklistRepository) SearchPartnershipRequestBlacklist ¶
func (repo PostgresPartnershipRequestBlacklistRepository) SearchPartnershipRequestBlacklist(criteria businesslogic.SearchPartnershipRequestBlacklistCriteria) ([]businesslogic.PartnershipRequestBlacklistEntry, error)
func (PostgresPartnershipRequestBlacklistRepository) UpdatePartnershipRequestBlacklist ¶
func (repo PostgresPartnershipRequestBlacklistRepository) UpdatePartnershipRequestBlacklist(blacklist businesslogic.PartnershipRequestBlacklistEntry) error
UpdatePartnershipRequestBlacklist will only update the whitelist status. Updating the detail or report reason is not allowed.
type PostgresPartnershipRequestRepository ¶
type PostgresPartnershipRequestRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresPartnershipRequestRepository) CreatePartnershipRequest ¶
func (repo PostgresPartnershipRequestRepository) CreatePartnershipRequest(request *businesslogic.PartnershipRequest) error
func (PostgresPartnershipRequestRepository) DeletePartnershipRequest ¶
func (repo PostgresPartnershipRequestRepository) DeletePartnershipRequest(request businesslogic.PartnershipRequest) error
func (PostgresPartnershipRequestRepository) GetReceivedRequests ¶
func (repo PostgresPartnershipRequestRepository) GetReceivedRequests(recipientID int) ([]businesslogic.PartnershipRequest, error)
func (PostgresPartnershipRequestRepository) GetSentRequests ¶
func (repo PostgresPartnershipRequestRepository) GetSentRequests(senderID int) ([]businesslogic.PartnershipRequest, error)
func (PostgresPartnershipRequestRepository) SearchPartnershipRequest ¶
func (repo PostgresPartnershipRequestRepository) SearchPartnershipRequest(criteria businesslogic.SearchPartnershipRequestCriteria) ([]businesslogic.PartnershipRequest, error)
func (PostgresPartnershipRequestRepository) UpdatePartnershipRequest ¶
func (repo PostgresPartnershipRequestRepository) UpdatePartnershipRequest(request businesslogic.PartnershipRequest) error
type PostgresPartnershipRequestStatusRepository ¶
type PostgresPartnershipRequestStatusRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresPartnershipRequestStatusRepository) GetPartnershipRequestStatus ¶
func (repo PostgresPartnershipRequestStatusRepository) GetPartnershipRequestStatus() ([]businesslogic.PartnershipRequestStatus, error)
type PostgresPartnershipRoleRepository ¶
type PostgresPartnershipRoleRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
PostgresPartnershipRoleRepository implements the IPartnershipRoleRepository with a Postgres database
func (PostgresPartnershipRoleRepository) GetAllPartnershipRoles ¶
func (repo PostgresPartnershipRoleRepository) GetAllPartnershipRoles() ([]businesslogic.PartnershipRole, error)
type PostgresPartnershipStatusRepository ¶
type PostgresPartnershipStatusRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
Click to show internal directories.
Click to hide internal directories.