Documentation ¶
Index ¶
- type DB
- func (d *DB) CreateGroup(ctx context.Context, displayName string) (database.Group, error)
- func (d *DB) CreateUser(ctx context.Context, arg database.UserParams) (database.User, error)
- func (d *DB) DeleteGroup(ctx context.Context, groupID uuid.UUID) error
- func (d *DB) DeleteUser(ctx context.Context, userID uuid.UUID) error
- func (d *DB) FindGroup(ctx context.Context, groupID uuid.UUID) (database.Group, error)
- func (d *DB) FindUser(ctx context.Context, userID uuid.UUID) (database.User, error)
- func (d *DB) GetGroupMembership(ctx context.Context, groupID uuid.UUID) ([]database.GroupMembership, error)
- func (d *DB) GetGroups(ctx context.Context, limit int32, offset int32) (int64, []database.Group, error)
- func (d *DB) GetUsers(ctx context.Context, input database.GetUsersParams) (int64, []database.User, error)
- func (d *DB) PatchGroup(ctx context.Context, groupID uuid.UUID, ...) error
- func (d *DB) SetUserActive(ctx context.Context, userID uuid.UUID, active bool) error
- func (d *DB) UpdateUser(ctx context.Context, userID uuid.UUID, arg database.UserParams) (database.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func New ¶
func New(app *application.App) DB
func (*DB) CreateGroup ¶
func (*DB) CreateUser ¶
func (*DB) GetGroupMembership ¶
func (*DB) PatchGroup ¶
func (*DB) SetUserActive ¶
Click to show internal directories.
Click to hide internal directories.