Documentation ¶
Index ¶
- type CoursService
- type IServiceContainer
- type KarmaService
- func (KarmaService *KarmaService) AddKarma(userID, guildID string, amount uint) (*models.Karma, error)
- func (KarmaService *KarmaService) CreateKarma(karma models.Karma) error
- func (KarmaService *KarmaService) GetKarma(userID, guildID string) (*models.Karma, error)
- func (KarmaService *KarmaService) UpdateKarma(karma models.Karma) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoursService ¶
type CoursService struct {
interfaces.ICoursRepository
}
func (*CoursService) AddCours ¶
func (c *CoursService) AddCours(userID string, value uint) (*models.CoursModel, error)
func (*CoursService) GetCours ¶
func (c *CoursService) GetCours(userID string) (*models.CoursModel, error)
func (*CoursService) RemoveCours ¶
func (c *CoursService) RemoveCours(userID string, value uint) (*models.CoursModel, error)
type IServiceContainer ¶
type IServiceContainer interface { InjectKarmaCommandHandler() karma.KarmaCommand InjectCoursCommandHandler() cours.CoursCommand }
func GetServiceContainer ¶
func GetServiceContainer() IServiceContainer
type KarmaService ¶
type KarmaService struct {
interfaces.IKarmaRepository
}
func (*KarmaService) CreateKarma ¶
func (KarmaService *KarmaService) CreateKarma(karma models.Karma) error
func (*KarmaService) GetKarma ¶
func (KarmaService *KarmaService) GetKarma(userID, guildID string) (*models.Karma, error)
func (*KarmaService) UpdateKarma ¶
func (KarmaService *KarmaService) UpdateKarma(karma models.Karma) error
Click to show internal directories.
Click to hide internal directories.