Documentation
¶
Overview ¶
Package repository implements methods of working with the repository objects
Index ¶
- type Repository
- func (r *Repository) Count(ctx context.Context, filter *rbac.Filter) (int64, error)
- func (r *Repository) Create(ctx context.Context, roleObj *model.Role) (uint64, error)
- func (r *Repository) Delete(ctx context.Context, id uint64) error
- func (r *Repository) FetchList(ctx context.Context, filter *rbac.Filter, order *rbac.Order, ...) ([]*model.Role, error)
- func (r *Repository) Get(ctx context.Context, id uint64) (*model.Role, error)
- func (r *Repository) GetByName(ctx context.Context, title string) (*model.Role, error)
- func (r *Repository) Update(ctx context.Context, id uint64, roleObj *model.Role) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
repository.Repository
}
Repository DAO which provides functionality of working with RBAC roles
func (*Repository) Delete ¶
func (r *Repository) Delete(ctx context.Context, id uint64) error
Delete delites record by ID
func (*Repository) FetchList ¶
func (r *Repository) FetchList(ctx context.Context, filter *rbac.Filter, order *rbac.Order, pagination *repository.Pagination) ([]*model.Role, error)
FetchList returns list of RBAC roles by filter
Click to show internal directories.
Click to hide internal directories.