Documentation ¶
Index ¶
- type IOnlineStatusDB
- type IUserDB
- func (_m *IUserDB) CreateUser(user *models.User) error
- func (_m *IUserDB) DeleteUser(user *models.User) error
- func (_m *IUserDB) FindByEmail(email string) (*models.User, error)
- func (_m *IUserDB) FindById(id string) (*models.User, error)
- func (_m *IUserDB) FindByUsername(username string) (*models.User, error)
- func (_m *IUserDB) UpdateUser(user *models.User) error
- type OnlineStatusDB
- type UserDB
- func (_m *UserDB) CreateUser(user *models.User) error
- func (_m *UserDB) DeleteUser(user *models.User) error
- func (_m *UserDB) FindByEmail(email string) (*models.User, error)
- func (_m *UserDB) FindById(id string) (*models.User, error)
- func (_m *UserDB) FindByUsername(username string) (*models.User, error)
- func (_m *UserDB) UpdateUser(user *models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOnlineStatusDB ¶
IOnlineStatusDB is an autogenerated mock type for the IOnlineStatusDB type
func NewIOnlineStatusDB ¶
func NewIOnlineStatusDB(t interface { mock.TestingT Cleanup(func()) }) *IOnlineStatusDB
NewIOnlineStatusDB creates a new instance of IOnlineStatusDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IOnlineStatusDB) GetOnlineStatus ¶
func (_m *IOnlineStatusDB) GetOnlineStatus(id string) (*database.OnlineStatus, error)
GetOnlineStatus provides a mock function with given fields: id
func (*IOnlineStatusDB) SetOnlineStatus ¶
func (_m *IOnlineStatusDB) SetOnlineStatus(id string, status *database.OnlineStatus) error
SetOnlineStatus provides a mock function with given fields: id, status
type IUserDB ¶
IUserDB is an autogenerated mock type for the IUserDB type
func NewIUserDB ¶
NewIUserDB creates a new instance of IUserDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IUserDB) CreateUser ¶
CreateUser provides a mock function with given fields: user
func (*IUserDB) DeleteUser ¶
DeleteUser provides a mock function with given fields: user
func (*IUserDB) FindByEmail ¶
FindByEmail provides a mock function with given fields: email
func (*IUserDB) FindByUsername ¶
FindByUsername provides a mock function with given fields: username
type OnlineStatusDB ¶
OnlineStatusDB is an autogenerated mock type for the OnlineStatusDB type
func NewOnlineStatusDB ¶
func NewOnlineStatusDB(t interface { mock.TestingT Cleanup(func()) }) *OnlineStatusDB
NewOnlineStatusDB creates a new instance of OnlineStatusDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OnlineStatusDB) GetOnlineStatus ¶
func (_m *OnlineStatusDB) GetOnlineStatus(id string) (*database.OnlineStatus, error)
GetOnlineStatus provides a mock function with given fields: id
func (*OnlineStatusDB) SetOnlineStatus ¶
func (_m *OnlineStatusDB) SetOnlineStatus(id string, status *database.OnlineStatus) error
SetOnlineStatus provides a mock function with given fields: id, status
type UserDB ¶
UserDB is an autogenerated mock type for the UserDB type
func NewUserDB ¶
NewUserDB creates a new instance of UserDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UserDB) CreateUser ¶
CreateUser provides a mock function with given fields: user
func (*UserDB) DeleteUser ¶
DeleteUser provides a mock function with given fields: user
func (*UserDB) FindByEmail ¶
FindByEmail provides a mock function with given fields: email
func (*UserDB) FindByUsername ¶
FindByUsername provides a mock function with given fields: username