service

package
v0.0.0-...-e06870b Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameService

type GameService struct {
	Conn     *repository.Connection
	CollName string
}

func NewGameService

func NewGameService(conn *repository.Connection, collName string) *GameService

func (*GameService) Delete

func (s *GameService) Delete(id string) error

func (*GameService) FindByID

func (s *GameService) FindByID(id string) (collection.Game, error)

func (*GameService) Insert

type PlayerGameInfoService

type PlayerGameInfoService struct {
	Conn     *repository.Connection
	CollName string
}

func NewPlayerGameInfoService

func NewPlayerGameInfoService(conn *repository.Connection, collName string) *PlayerGameInfoService

func (*PlayerGameInfoService) Delete

func (s *PlayerGameInfoService) Delete(gameID, name string) error

func (*PlayerGameInfoService) Find

func (s *PlayerGameInfoService) Find(gameID, name string) (collection.PlayerGameInfo, error)

func (*PlayerGameInfoService) GetAssistLeader

func (s *PlayerGameInfoService) GetAssistLeader() (collection.PlayerGameInfo, error)

func (*PlayerGameInfoService) Insert

type PlayerService

type PlayerService struct {
	Conn     *repository.Connection
	CollName string
}

func NewPlayerService

func NewPlayerService(conn *repository.Connection, collName string) *PlayerService

func (*PlayerService) Delete

func (s *PlayerService) Delete(name string) error

func (*PlayerService) FindByName

func (s *PlayerService) FindByName(name string) (collection.Player, error)

func (*PlayerService) Insert

type TeamService

type TeamService struct {
	Conn     *repository.Connection
	CollName string
}

func NewTeamService

func NewTeamService(conn *repository.Connection, collName string) *TeamService

func (*TeamService) Delete

func (s *TeamService) Delete(name string) error

func (*TeamService) FindByAbbreviation

func (s *TeamService) FindByAbbreviation(abbr string) (collection.Team, error)

func (*TeamService) GetAllTeams

func (s *TeamService) GetAllTeams() ([]collection.Team, error)

func (*TeamService) Insert

Jump to

Keyboard shortcuts

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