Documentation ¶
Overview ¶
Package repository implements methods of working with the repository objects
Index ¶
- type Repository
- func (r *Repository) Count(ctx context.Context, filter *authclient.Filter) (int64, error)
- func (r *Repository) Create(ctx context.Context, roleObj *model.AuthClient) (string, error)
- func (r *Repository) Delete(ctx context.Context, id string) error
- func (r *Repository) FetchList(ctx context.Context, filter *authclient.Filter) ([]*model.AuthClient, error)
- func (r *Repository) Get(ctx context.Context, id string) (*model.AuthClient, error)
- func (r *Repository) Update(ctx context.Context, id string, roleObj *model.AuthClient) 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) Count ¶
func (r *Repository) Count(ctx context.Context, filter *authclient.Filter) (int64, error)
Count returns count of records by filter
func (*Repository) Create ¶
func (r *Repository) Create(ctx context.Context, roleObj *model.AuthClient) (string, error)
Create new object into database
func (*Repository) Delete ¶
func (r *Repository) Delete(ctx context.Context, id string) error
Delete delites record by ID
func (*Repository) FetchList ¶
func (r *Repository) FetchList(ctx context.Context, filter *authclient.Filter) ([]*model.AuthClient, error)
FetchList returns list of RBAC roles by filter
func (*Repository) Get ¶
func (r *Repository) Get(ctx context.Context, id string) (*model.AuthClient, error)
Get returns RBAC role model by ID
func (*Repository) Update ¶
func (r *Repository) Update(ctx context.Context, id string, roleObj *model.AuthClient) error
Update existing object in database
Click to show internal directories.
Click to hide internal directories.