Documentation ¶
Index ¶
- type App
- func (a *App) Check(ctx context.Context, old, new model.User) error
- func (a *App) CheckRights(ctx context.Context, id uint64) error
- func (a *App) Create(ctx context.Context, o model.User) (model.User, error)
- func (a *App) Delete(ctx context.Context, o model.User) error
- func (a *App) Get(ctx context.Context, ID uint64) (model.User, error)
- func (a *App) List(ctx context.Context, page, pageSize uint, sortKey string, sortDesc bool, ...) ([]model.User, uint, error)
- func (a *App) SetCheck(err error) *App
- func (a *App) SetCheckRights(err error) *App
- func (a *App) SetCreate(user model.User, err error) *App
- func (a *App) SetDelete(err error) *App
- func (a *App) SetGet(user model.User, err error) *App
- func (a *App) SetList(users []model.User, total uint, err error) *App
- func (a *App) SetUpdate(user model.User, err error) *App
- func (a *App) Update(ctx context.Context, o model.User) (model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App mocks
func (*App) CheckRights ¶
CheckRights mocks
func (*App) List ¶
func (a *App) List(ctx context.Context, page, pageSize uint, sortKey string, sortDesc bool, filters map[string][]string) ([]model.User, uint, error)
List mocks
Click to show internal directories.
Click to hide internal directories.