services

package
v0.0.0-...-41e3a0e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) AddKarma

func (KarmaService *KarmaService) AddKarma(userID, guildID string, amount uint) (*models.Karma, error)

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

Jump to

Keyboard shortcuts

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