statsrunner

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 License: MIT Imports: 18 Imported by: 0

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

func (*StatsRunner) Stop

func (sr *StatsRunner) Stop()

Stop stops the StatsRunner and its workers

Jump to

Keyboard shortcuts

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