api

package
v0.0.11-otel Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEntryManagers

func NewEntryManagers() *repository.Mgrs

func NewGlicko2Matcher

func NewGlicko2Matcher(roomChannel chan entry.Room, conf *config.MatchConfig, mgrs *repository.Mgrs) *glicko2.Matcher

Types

type API

func NewAPI

func NewAPI(configer config.Configer[config.MatchConfig],
	groupChannel chan entry.Group, roomChannel chan entry.Room,
	dt timer.Operator[int64], gm *glicko2.Matcher, mgrs *repository.Mgrs) *API

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.

type InfraBase

InfraBase is the base infrastructure for the api.

func NewInfraBase

NewInfraBase creates a new InfraBase.

func (*InfraBase) Start

func (i *InfraBase) Start()

Start starts the infrastructure, if any errors occur, it will panic.

func (*InfraBase) Stop

func (i *InfraBase) Stop()

Stop stops the infrastructure.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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