Documentation
¶
Index ¶
- type Repository
- func (_m *Repository) Delete(ctx context.Context, a *models.User) error
- func (_m *Repository) Fetch(ctx context.Context) ([]models.User, error)
- func (_m *Repository) FindAll() ([]*models.User, error)
- func (_m *Repository) GetByEmpNumber(ctx context.Context, empNumber string) (models.User, error)
- func (_m *Repository) GetByID(ctx context.Context, id int64) (*models.User, error)
- func (_m *Repository) GetByUserName(ctx context.Context, userName string) (models.User, error)
- func (_m *Repository) Store(ctx context.Context, a *models.User) (int, error)
- func (_m *Repository) Update(ctx context.Context, ar *models.User, id int) error
- type Usecase
- func (_m *Usecase) Delete(ctx context.Context, empNumber string) error
- func (_m *Usecase) Fetch(ctx context.Context) ([]models.User, error)
- func (_m *Usecase) GetByEmpNumber(ctx context.Context, empNumber string) (models.User, error)
- func (_m *Usecase) Login(ctx context.Context, u models.User) (models.User, error)
- func (_m *Usecase) Store(_a0 context.Context, _a1 *models.User) error
- func (_m *Usecase) Update(ctx context.Context, u *models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) FindAll ¶
func (_m *Repository) FindAll() ([]*models.User, error)
FindAll provides a mock function with given fields:
func (*Repository) GetByEmpNumber ¶
GetByEmpNumber provides a mock function with given fields: ctx, empNumber
func (*Repository) GetByUserName ¶
GetByUserName provides a mock function with given fields: ctx, userName
type Usecase ¶
Usecase is an autogenerated mock type for the Usecase type
func (*Usecase) GetByEmpNumber ¶
GetByEmpNumber provides a mock function with given fields: ctx, empNumber
Click to show internal directories.
Click to hide internal directories.