Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDelayTime ¶
func NewEntryManagers ¶
func NewGlicko2Matcher ¶
Types ¶
type API ¶
type API struct { MS service.Match M *matcher.Matcher PM *entry.PlayerMgr GM *entry.GroupMgr TM *entry.TeamMgr RM *entry.RoomMgr }
func Start ¶
func Start( sc config.Configer[config.ServerConfig], mc config.Configer[config.MatchConfig], ) (api *API, shutdown func())
Start initializes the api components and starts them.
func (*API) ReloadEntries ¶
ReloadEntries reloads the entries when the server starts.
func (*API) SaveEntries ¶
SaveEntries saves the entries when the server stops.
type InfraBase ¶
type InfraBase struct { *goapm.Infra SC config.Configer[config.ServerConfig] MC config.Configer[config.MatchConfig] }
InfraBase is the base infrastructure for the api.
func NewInfraBase ¶
func NewInfraBase( sc config.Configer[config.ServerConfig], mc config.Configer[config.MatchConfig], ) *InfraBase
NewInfraBase creates a new InfraBase.
Click to show internal directories.
Click to hide internal directories.