Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListRelationshipsCriteria ¶
type ListRelationshipsCriteria struct { PageNumber uint // Page number for pagination (0 for no pagination) PageSize uint // Number of items per page (0 for no pagination) FilterByConsentStatus *entity.ConsentStatus // Filter relationships by consent status (optional) FilterByTrustDomainID uuid.NullUUID // Filter relationships by trust domain ID (optional) OrderByCreatedAt OrderDirection // Order relationships by created at (ascending, descending, or no order) }
ListRelationshipsCriteria defines the criteria for filtering and ordering relationships. When both FilterByConsentStatus and FilterByTrustDomainID are set, the relationships returned will be the ones that have the consent status on the field corresponding to the trust domain ID. This means the relationships must match the consent status specified in either trust_domain_a_consent or trust_domain_b_consent field, depending on the specified trust domain ID. If only one of the filter criteria is set, the relationships will be filtered based on that criterion alone. If none of the filter criteria are set, all relationships will be returned without any filtering.
type OrderDirection ¶
type OrderDirection string
const ( NoOrder OrderDirection = "" OrderAscending OrderDirection = "asc" OrderDescending OrderDirection = "desc" )