servicetest

package
v2.6.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 New

func New() *App

New create new instance

func (*App) Check

func (a *App) Check(ctx context.Context, old, new model.User) error

Check mocks

func (*App) CheckRights

func (a *App) CheckRights(ctx context.Context, id uint64) error

CheckRights mocks

func (*App) Create

func (a *App) Create(ctx context.Context, o model.User) (model.User, error)

Create mocks

func (*App) Delete

func (a *App) Delete(ctx context.Context, o model.User) error

Delete mocks

func (*App) Get

func (a *App) Get(ctx context.Context, ID uint64) (model.User, error)

Get 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

func (*App) SetCheck

func (a *App) SetCheck(err error) *App

SetCheck mocks

func (*App) SetCheckRights

func (a *App) SetCheckRights(err error) *App

SetCheckRights mocks

func (*App) SetCreate

func (a *App) SetCreate(user model.User, err error) *App

SetCreate mocks

func (*App) SetDelete

func (a *App) SetDelete(err error) *App

SetDelete mocks

func (*App) SetGet

func (a *App) SetGet(user model.User, err error) *App

SetGet mocks

func (*App) SetList

func (a *App) SetList(users []model.User, total uint, err error) *App

SetList mocks

func (*App) SetUpdate

func (a *App) SetUpdate(user model.User, err error) *App

SetUpdate mocks

func (*App) Update

func (a *App) Update(ctx context.Context, o model.User) (model.User, error)

Update mocks

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL