mocks

package
v0.0.0-...-bdbfe35 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserCommand

type UserCommand struct {
	mock.Mock
}

func (*UserCommand) Create

func (u *UserCommand) Create(user domain.User) error

func (*UserCommand) Delete

func (u *UserCommand) Delete(userId int64) error

func (*UserCommand) Update

func (u *UserCommand) Update(userId int64, user domain.User) error

type UserQuery

type UserQuery struct {
	mock.Mock
}

func (*UserQuery) FindAll

func (u *UserQuery) FindAll() (*[]domain.User, error)

func (*UserQuery) FindByEmail

func (u *UserQuery) FindByEmail(email string) (domain.User, error)

func (*UserQuery) FindById

func (u *UserQuery) FindById(userId int64) (domain.User, error)

Jump to

Keyboard shortcuts

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