Documentation
¶
Overview ¶
Package account present full API functionality of the specific object
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct {
ID model.Order
Name model.Order
Title model.Order
AccessLevel model.Order
CreatedAt model.Order
UpdatedAt model.Order
}
Order of the objects list
type Repository ¶
type Repository interface {
Get(ctx context.Context, id uint64) (*model.Role, error)
GetByName(ctx context.Context, name string) (*model.Role, error)
FetchList(ctx context.Context, filter *Filter, order *Order, pagination *repository.Pagination) ([]*model.Role, error)
Count(ctx context.Context, filter *Filter) (int64, error)
Create(ctx context.Context, role *model.Role) (uint64, error)
Update(ctx context.Context, id uint64, role *model.Role) error
Delete(ctx context.Context, id uint64) error
}
Repository of access to the account
type Usecase ¶
type Usecase interface {
Get(ctx context.Context, id uint64) (*model.Role, error)
GetByName(ctx context.Context, title string) (*model.Role, error)
FetchList(ctx context.Context, filter *Filter, order *Order, pagination *repository.Pagination) ([]*model.Role, error)
Count(ctx context.Context, filter *Filter) (int64, error)
Create(ctx context.Context, role *model.Role) (uint64, error)
Update(ctx context.Context, id uint64, role *model.Role) error
Delete(ctx context.Context, id uint64) error
}
Usecase of the account
Directories
¶
| Path | Synopsis |
|---|---|
|
delivery
|
|
|
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
Package repository implements methods of working with the repository objects
|
Package repository implements methods of working with the repository objects |
|
Package usecase account implementation
|
Package usecase account implementation |
Click to show internal directories.
Click to hide internal directories.