Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCredentialsAlreadyExist = errors.New("credentials already exist")
View Source
var ErrCredentialsNotFound = errors.New("credentials not found")
Functions ¶
This section is empty.
Types ¶
type CreateCredentials ¶
type CreateCredentials interface { Exec( ctx context.Context, id uuid.UUID, now time.Time, request *CreateCredentialsRequest, ) (*entities.Credential, error) }
func NewCreateCredentials ¶
func NewCreateCredentials(database bun.IDB) CreateCredentials
type ExistsCredentials ¶
type ExistsCredentials interface {
Exec(ctx context.Context, request *ExistsCredentialsRequest) (bool, error)
}
func NewExistsCredentials ¶
func NewExistsCredentials(database bun.IDB) ExistsCredentials
type GetCredentials ¶
type GetCredentials interface {
Exec(ctx context.Context, request *GetCredentialsRequest) (*entities.Credential, error)
}
func NewGetCredentials ¶
func NewGetCredentials(database bun.IDB) GetCredentials
type GetCredentialsRequest ¶
type ListCredentials ¶
type ListCredentials interface {
Exec(ctx context.Context, ids []uuid.UUID) ([]*entities.Credential, error)
}
func NewListCredentials ¶
func NewListCredentials(database bun.IDB) ListCredentials
type SearchCredentials ¶
type SearchCredentials interface {
Exec(ctx context.Context, request *SearchCredentialsRequest) (uuid.UUIDs, error)
}
func NewSearchCredentials ¶
func NewSearchCredentials(database bun.IDB) SearchCredentials
type SearchCredentialsRequest ¶
type SearchCredentialsRequest struct { Limit int Offset int Sort entities.SortCredentials SortDirection database.SortDirection Emails []string Roles []entities.Role }
type UpdateCredentials ¶
type UpdateCredentials interface { Exec( ctx context.Context, id uuid.UUID, now time.Time, data *UpdateCredentialsRequest, ) (*entities.Credential, error) }
func NewUpdateCredentials ¶
func NewUpdateCredentials(database bun.IDB) UpdateCredentials
Source Files ¶
Click to show internal directories.
Click to hide internal directories.