services

package
v0.0.0-...-0ec8832 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService interface {
	VerifyCredentials(email string, password string) (uid uint, err error)
}

func NewAuthService

func NewAuthService(userRepo repos.UserRepo) AuthService

type EquipmentCRUDService

type EquipmentCRUDService interface {
	CreateEquipment(req dto.CreateEquipmentRequest) (entities.Equipment, error)
	GetAllEquipment() ([]entities.Equipment, error)
	GetAllEquipmentByCategory(category string) ([]entities.Equipment, error)
	GetOneEquipment(name string) (entities.Equipment, error)
	UpdateOneEquipment(req dto.UpdateOneEquipmentRequest, name string) (entities.Equipment, error)
	UpdateEquipLimit(req dto.BulkUpdateEquipLimitRequest) error
	DeleteOneEquipment(name string) error
}

func NewEquipmentService

func NewEquipmentService(repo repos.EquipmentRepo) EquipmentCRUDService

type JWTService

type JWTService interface {
	GenerateToken(uid string) string
	ValidateToken(uid string, c *gin.Context) *jwt.Token
}

func NewJWTService

func NewJWTService() JWTService

Need to initialize this interface before calling it

type NeutralCRUDService

type NeutralCRUDService interface {
	CreateNeutralMonster(req dto.CreateNeutralMonsterRequest) (entities.Monster, error)
	GetAllNeutralMonster() ([]entities.Monster, error)
	GetOneNeutralMonster(name string) (entities.Monster, error)
	UpdateOneNeutralMonster(req dto.UpdateOneNeutralMonster, name string) (entities.Monster, error)
	DeleteOneNeutralMonster(name string) error
	// ------------------------------------------------
	CreateSubordinateMonster(req dto.CreateSubordinateMonsterRequest) (entities.Subordinate, error)
	GetAllSubordinateMonster() ([]entities.Subordinate, error)
	GetOneSubordinateMonster(name string) (entities.Subordinate, error)
	UpdateOneSubordinateMonster(req dto.UpdateOneSubordinateMonster, name string) (entities.Subordinate, error)
	DeleteOneSubordinateMonster(name string) error
}

func NewNeutralCRUDService

func NewNeutralCRUDService(repo repos.NeutralRepo) NeutralCRUDService

type SpellAndTechCRUDService

type SpellAndTechCRUDService interface {
}

type UserService

type UserService interface {
	CreateUser(signupRequest dto.SignupRequest) (entities.User, error)
}

func NewUserService

func NewUserService(userRepo repos.UserRepo) UserService

type ValidatorAuthService

type ValidatorAuthService interface {
	Validate(c *gin.Context, err error, step string) bool
}

func NewAuthValidatorService

func NewAuthValidatorService() ValidatorAuthService

type ValidatorCRUDService

type ValidatorCRUDService interface {
	Validate(c *gin.Context, err error, step string) bool
}

func NewCRUDValidatorService

func NewCRUDValidatorService() ValidatorCRUDService

Jump to

Keyboard shortcuts

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