Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface {
LockRoleChanges(context.Context, postgres.DBTX) error
FindUserForUpdate(context.Context, postgres.DBTX, slug.Slug) (*User, error)
CountSuperAdmins(context.Context, postgres.DBTX) (int64, error)
SetUserRole(context.Context, postgres.DBTX, slug.Slug, model.Role) error
CreateAudit(context.Context, postgres.DBTX, slug.Slug, model.Role, model.Role) error
}
func NewRepository ¶
func NewRepository() Repository
Click to show internal directories.
Click to hide internal directories.