Documentation ¶
Overview ¶
Package statsrunner is the statistics calculation part of ALoLStats and provides the calculation facilities and the API endpoints for retreiving the data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatsRunner ¶
type StatsRunner struct {
// contains filtered or unexported fields
}
StatsRunner calculates statistics and provides endpoints for the API
func NewStatsRunner ¶
func NewStatsRunner(cfg config.StatsRunner, storage *storage.Storage) (*StatsRunner, error)
NewStatsRunner creates a new LoL StatsRunner
func (*StatsRunner) GetHandeledRequests ¶
func (sr *StatsRunner) GetHandeledRequests() uint64
GetHandeledRequests gets the total number of api requests handeled by the StatsRunner since creating it
func (*StatsRunner) RegisterAPI ¶
func (sr *StatsRunner) RegisterAPI(api *api.API)
RegisterAPI registers all endpoints from StatsRunner to the RestAPI
func (*StatsRunner) Start ¶
func (sr *StatsRunner) Start()
Start starts the StatsRunner and its workers
Click to show internal directories.
Click to hide internal directories.