Documentation
¶
Index ¶
- type GameService
- type PlayerGameInfoService
- func (s *PlayerGameInfoService) Delete(gameID, name string) error
- func (s *PlayerGameInfoService) Find(gameID, name string) (collection.PlayerGameInfo, error)
- func (s *PlayerGameInfoService) GetAssistLeader() (collection.PlayerGameInfo, error)
- func (s *PlayerGameInfoService) Insert(p collection.PlayerGameInfo) (*mongo.InsertOneResult, error)
- type PlayerService
- type TeamService
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 ¶
func (s *GameService) Insert(p collection.Game) (*mongo.InsertOneResult, error)
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 ¶
func (s *PlayerGameInfoService) Insert(p collection.PlayerGameInfo) (*mongo.InsertOneResult, error)
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 ¶
func (s *PlayerService) Insert(p collection.Player) (*mongo.InsertOneResult, error)
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 ¶
func (s *TeamService) Insert(t collection.Team) (*mongo.InsertOneResult, error)
Click to show internal directories.
Click to hide internal directories.