Documentation ¶
Overview ¶
Package repository implements methods of working with the repository objects
Index ¶
- type Repository
- func (r *Repository) Count(ctx context.Context, filter *option.Filter) (int64, error)
- func (r *Repository) Delete(ctx context.Context, name string, otype model.OptionType, targetID uint64) error
- func (r *Repository) FetchList(ctx context.Context, filter *option.Filter, order *option.ListOrder, ...) ([]*model.Option, error)
- func (r *Repository) Get(ctx context.Context, name string, otype model.OptionType, targetID uint64) (*model.Option, error)
- func (r *Repository) Set(ctx context.Context, obj *model.Option) 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 song-tabulatures
func (*Repository) Delete ¶
func (r *Repository) Delete(ctx context.Context, name string, otype model.OptionType, targetID uint64) error
Delete delites record by ID
func (*Repository) FetchList ¶
func (r *Repository) FetchList(ctx context.Context, filter *option.Filter, order *option.ListOrder, pagination *repository.Pagination) ([]*model.Option, error)
FetchList returns list of
Click to show internal directories.
Click to hide internal directories.