Documentation ¶
Index ¶
- type ICoursRepository
- type ICoursService
- type IKarmaRepository
- type IKarmaService
- func (_m *IKarmaService) AddKarma(userID string, guildID string, amount uint) (*models.Karma, error)
- func (_m *IKarmaService) CreateKarma(karma models.Karma) error
- func (_m *IKarmaService) GetKarma(userID string, guildID string) (*models.Karma, error)
- func (_m *IKarmaService) UpdateKarma(karma models.Karma) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICoursRepository ¶
ICoursRepository is an autogenerated mock type for the ICoursRepository type
func NewICoursRepository ¶
func NewICoursRepository(t mockConstructorTestingTNewICoursRepository) *ICoursRepository
NewICoursRepository creates a new instance of ICoursRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ICoursRepository) CreateCours ¶
func (_m *ICoursRepository) CreateCours(cours models.CoursModel) error
CreateCours provides a mock function with given fields: cours
func (*ICoursRepository) GetCours ¶
func (_m *ICoursRepository) GetCours(userID string) (*models.CoursModel, error)
GetCours provides a mock function with given fields: userID
func (*ICoursRepository) UpdateCours ¶
func (_m *ICoursRepository) UpdateCours(cours models.CoursModel) error
UpdateCours provides a mock function with given fields: cours
type ICoursService ¶
ICoursService is an autogenerated mock type for the ICoursService type
func NewICoursService ¶
func NewICoursService(t mockConstructorTestingTNewICoursService) *ICoursService
NewICoursService creates a new instance of ICoursService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ICoursService) AddCours ¶
func (_m *ICoursService) AddCours(userID string, value uint) error
AddCours provides a mock function with given fields: userID, value
func (*ICoursService) GetCours ¶
func (_m *ICoursService) GetCours(userID string) (*models.CoursModel, error)
GetCours provides a mock function with given fields: userID
func (*ICoursService) RemoveCours ¶
func (_m *ICoursService) RemoveCours(userID string, value uint) error
RemoveCours provides a mock function with given fields: userID, value
type IKarmaRepository ¶
IKarmaRepository is an autogenerated mock type for the IKarmaRepository type
func NewIKarmaRepository ¶
func NewIKarmaRepository(t mockConstructorTestingTNewIKarmaRepository) *IKarmaRepository
NewIKarmaRepository creates a new instance of IKarmaRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IKarmaRepository) CreateKarma ¶
func (_m *IKarmaRepository) CreateKarma(karma models.Karma) error
CreateKarma provides a mock function with given fields: karma
func (*IKarmaRepository) GetKarma ¶
GetKarma provides a mock function with given fields: userID, guildID
func (*IKarmaRepository) UpdateKarma ¶
func (_m *IKarmaRepository) UpdateKarma(karma models.Karma) error
UpdateKarma provides a mock function with given fields: karma
type IKarmaService ¶
IKarmaService is an autogenerated mock type for the IKarmaService type
func NewIKarmaService ¶
func NewIKarmaService(t mockConstructorTestingTNewIKarmaService) *IKarmaService
NewIKarmaService creates a new instance of IKarmaService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IKarmaService) AddKarma ¶
func (_m *IKarmaService) AddKarma(userID string, guildID string, amount uint) (*models.Karma, error)
AddKarma provides a mock function with given fields: userID, guildID, amount
func (*IKarmaService) CreateKarma ¶
func (_m *IKarmaService) CreateKarma(karma models.Karma) error
CreateKarma provides a mock function with given fields: karma
func (*IKarmaService) GetKarma ¶
GetKarma provides a mock function with given fields: userID, guildID
func (*IKarmaService) UpdateKarma ¶
func (_m *IKarmaService) UpdateKarma(karma models.Karma) error
UpdateKarma provides a mock function with given fields: karma