analysis

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FightData

type FightData struct {
	*ctx.Ctx

	Code string
	Num  int64

	Fights fight.Fights

	Fight      *fight.Fight
	Friendlies []fight.Friendly
	Enemies    []fight.Enemy
	Phases     *fight.Phases
}

type Health

type Health struct {
	Timestamp   time.Duration
	Current     int64
	Max         int64
	Healing     int64
	DamageTaken int64
}

func (*Health) MarshalJSON

func (hp *Health) MarshalJSON() ([]byte, error)

type HealthTS

type HealthTS struct {
	// contains filtered or unexported fields
}

func NewHealthTS

func NewHealthTS() *HealthTS

func (*HealthTS) Add

func (hts *HealthTS) Add(hp Health)

type PerSecondSeries

type PerSecondSeries []float64

func EventsToPerSecond

func EventsToPerSecond(evts []events.Event, f func(*events.Event) float64) PerSecondSeries

func ToPerSecond

func ToPerSecond(values map[time.Duration]float64) PerSecondSeries

func (PerSecondSeries) Value

func (e PerSecondSeries) Value(t time.Duration) float64

type RaidHealth

type RaidHealth []Health

type THCDA

type THCDA struct {
	*ctx.Ctx

	WCL *warcraftlogs.Client
}

func (*THCDA) RaidHealth

func (t *THCDA) RaidHealth(fd *FightData) (RaidHealth, error)

func (*THCDA) RegisterHTTPHandlers

func (t *THCDA) RegisterHTTPHandlers(router *mux.Router)

Jump to

Keyboard shortcuts

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