Documentation ¶
Index ¶
- type IDatabase
- type IHandler
- func (_m *IHandler) Count(ctx context.Context, params arguments.UserCount) (int64, error)
- func (_m *IHandler) Delete(ctx context.Context, param arguments.UserDelete) (int64, error)
- func (_m *IHandler) GetByID(ctx context.Context, param arguments.UserGetByID) (models.User, error)
- func (_m *IHandler) GetByIDs(ctx context.Context, param arguments.UserGetByIDs) ([]models.User, error)
- func (_m *IHandler) Insert(ctx context.Context, params arguments.UserInsert) (models.User, error)
- func (_m *IHandler) List(ctx context.Context, params arguments.UserList) ([]models.User, error)
- func (_m *IHandler) Login(ctx context.Context, param arguments.UserLogin) (string, error)
- func (_m *IHandler) Update(ctx context.Context, params arguments.UserUpdate) (models.User, error)
- type IRepository
- func (_m *IRepository) Count(ctx context.Context, params arguments.UserCount) (int64, error)
- func (_m *IRepository) Delete(ctx context.Context, param arguments.UserDelete) (int64, error)
- func (_m *IRepository) GetByID(ctx context.Context, param arguments.UserGetByID) (models.User, error)
- func (_m *IRepository) GetByIDs(ctx context.Context, param arguments.UserGetByIDs) ([]models.User, error)
- func (_m *IRepository) GetByUsername(ctx context.Context, username string) (models.User, error)
- func (_m *IRepository) Insert(ctx context.Context, params arguments.UserInsert) (models.User, error)
- func (_m *IRepository) List(ctx context.Context, params arguments.UserList) ([]models.User, error)
- func (_m *IRepository) Update(ctx context.Context, params arguments.UserUpdate) (models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDatabase ¶
IDatabase is an autogenerated mock type for the IDatabase type
type IHandler ¶
IHandler is an autogenerated mock type for the IHandler type
func (*IHandler) GetByIDs ¶
func (_m *IHandler) GetByIDs(ctx context.Context, param arguments.UserGetByIDs) ([]models.User, error)
GetByIDs provides a mock function with given fields: ctx, param
type IRepository ¶
IRepository is an autogenerated mock type for the IRepository type
func (*IRepository) Delete ¶
func (_m *IRepository) Delete(ctx context.Context, param arguments.UserDelete) (int64, error)
Delete provides a mock function with given fields: ctx, param
func (*IRepository) GetByID ¶
func (_m *IRepository) GetByID(ctx context.Context, param arguments.UserGetByID) (models.User, error)
GetByID provides a mock function with given fields: ctx, param
func (*IRepository) GetByIDs ¶
func (_m *IRepository) GetByIDs(ctx context.Context, param arguments.UserGetByIDs) ([]models.User, error)
GetByIDs provides a mock function with given fields: ctx, param
func (*IRepository) GetByUsername ¶
GetByUsername provides a mock function with given fields: ctx, username
func (*IRepository) Insert ¶
func (_m *IRepository) Insert(ctx context.Context, params arguments.UserInsert) (models.User, error)
Insert provides a mock function with given fields: ctx, params
func (*IRepository) Update ¶
func (_m *IRepository) Update(ctx context.Context, params arguments.UserUpdate) (models.User, error)
Update provides a mock function with given fields: ctx, params