Documentation ¶
Index ¶
- type DBTX
- type Queries
- func (q *Queries) AllGroups(ctx context.Context, limit int32, offset int32) ([]*permissions_models.Group, error)
- func (q *Queries) AllPermissions(ctx context.Context, limit int32, offset int32) ([]*permissions_models.Permission, error)
- func (q *Queries) Close() error
- func (q *Queries) DeleteGroup(ctx context.Context, id uint64) error
- func (q *Queries) DeleteGroupPermission(ctx context.Context, groupID uint64, permissionID uint64) error
- func (q *Queries) DeletePermission(ctx context.Context, id uint64) error
- func (q *Queries) DeleteUserGroup(ctx context.Context, userID uint64, groupID uint64) error
- func (q *Queries) GetGroupByID(ctx context.Context, id uint64) (*permissions_models.Group, error)
- func (q *Queries) GetPermissionByID(ctx context.Context, id uint64) (*permissions_models.Permission, error)
- func (q *Queries) InsertGroup(ctx context.Context, name string, description string) (int64, error)
- func (q *Queries) InsertGroupPermission(ctx context.Context, groupID uint64, permissionID uint64) (int64, error)
- func (q *Queries) InsertPermission(ctx context.Context, name string, description string) (int64, error)
- func (q *Queries) InsertUserGroup(ctx context.Context, userID uint64, groupID uint64) (int64, error)
- func (q *Queries) PermissionsForUser(ctx context.Context, userID uint64) ([]*permissions_models.Permission, error)
- func (q *Queries) UpdateGroup(ctx context.Context, name string, description string, iD uint64) error
- func (q *Queries) UpdatePermission(ctx context.Context, name string, description string, iD uint64) error
- func (q *Queries) UserGroups(ctx context.Context, id uint64) (g permissions_models.Group, p []*permissions_models.Permission, err error)
- func (q *Queries) UserHasPermission(ctx context.Context, userID uint64, permissionName string) (int64, error)
- func (q *Queries) WithTx(tx *sql.Tx) permissions_models.Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AllPermissions ¶
func (q *Queries) AllPermissions(ctx context.Context, limit int32, offset int32) ([]*permissions_models.Permission, error)
func (*Queries) DeleteGroupPermission ¶
func (*Queries) DeletePermission ¶
func (*Queries) DeleteUserGroup ¶
func (*Queries) GetGroupByID ¶
func (*Queries) GetPermissionByID ¶
func (q *Queries) GetPermissionByID(ctx context.Context, id uint64) (*permissions_models.Permission, error)
func (*Queries) InsertGroup ¶
func (*Queries) InsertGroupPermission ¶
func (*Queries) InsertPermission ¶
func (*Queries) InsertUserGroup ¶
func (*Queries) PermissionsForUser ¶
func (q *Queries) PermissionsForUser(ctx context.Context, userID uint64) ([]*permissions_models.Permission, error)
func (*Queries) UpdateGroup ¶
func (*Queries) UpdatePermission ¶
func (*Queries) UserGroups ¶
func (q *Queries) UserGroups(ctx context.Context, id uint64) (g permissions_models.Group, p []*permissions_models.Permission, err error)
func (*Queries) UserHasPermission ¶
Click to show internal directories.
Click to hide internal directories.