services

package
v0.0.0-...-1291c50 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationService

type AuthenticationService interface {
	AuthenticatePlayer(c *gin.Context, a *models.PlayerAuthentication) (*models.Token, *models.ErrorParsing)
}

AuthenticationService :

func NewAuthenticationService

func NewAuthenticationService(pr repositories.PlayerRepository) AuthenticationService

NewAuthenticationService :

type PlayerService

type PlayerService interface {
	ListPlayers(index, size int) (*models.Pagination, *models.ErrorParsing)
	GetPlayer(id string) (*models.Player, *models.ErrorParsing)
	GetPlayerByUserName(username string) (*models.Player, *models.ErrorParsing)
	CreatePlayer(pr *models.PlayerRegistration) (*models.Player, *models.ErrorParsing)
	UpdatePlayer(id string, player *models.Player) (*models.Player, *models.ErrorParsing)
	ModifyPlayer(id string, player map[string]interface{}) (*models.Player, *models.ErrorParsing)
	DeletePlayer(id string) *models.ErrorParsing
}

PlayerService :

func NewPlayerService

func NewPlayerService(pr repositories.PlayerRepository) PlayerService

NewPlayerService :

Jump to

Keyboard shortcuts

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