analytics

package
v0.0.0-...-afa07b2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateKilled

func AggregateKilled(c *cli.Context) error

func AggregateKills

func AggregateKills(c *cli.Context) error

func AggregateLosses

func AggregateLosses(c *cli.Context) error

func GenerateSingleValuePlot

func GenerateSingleValuePlot(name string, values PairList) error

Types

type Pair

type Pair struct {
	Key   string
	Value int
}

type PairList

type PairList []Pair

func AggregateKilledCountAnalysis

func AggregateKilledCountAnalysis(aggregate string, entityType string, entityID int, c *client.Client, startDate time.Time, endDate time.Time) (counts PairList, err error)

AggregateLossCountAnalysis returns a sorted slice of Pair items where the Key is a Entity name and the key is the number killed for the entity type

func AggregateKillsCountAnalysis

func AggregateKillsCountAnalysis(aggregate string, entityType string, entityID int, c *client.Client, startDate time.Time, endDate time.Time) (counts PairList, err error)

func AggregateLossCountAnalysis

func AggregateLossCountAnalysis(aggregate string, entityType string, entityID int, c *client.Client, startDate time.Time, endDate time.Time) (counts PairList, err error)

AggregateLossCountAnalysis returns a sorted slice of Pair items where the Key is a Entity name and the key is the number lost for the entity type

func (PairList) Len

func (p PairList) Len() int

func (PairList) Less

func (p PairList) Less(i, j int) bool

func (PairList) Swap

func (p PairList) Swap(i, j int)

Jump to

Keyboard shortcuts

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