server

package
v0.0.0-...-48d56c4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: AGPL-3.0 Imports: 106 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigDir string
	Port      int
}

type ResultFloat

type ResultFloat struct {
	Mean float64 `json:"mean"`
	Min  float64 `json:"min"`
	Max  float64 `json:"max"`
	SD   float64 `json:"sd"`
}

type ResultInt

type ResultInt struct {
	Min  int     `json:"min"`
	Max  int     `json:"max"`
	Mean float64 `json:"mean"`
}

type Server

type Server struct {
	Router *chi.Mux
	Log    *zap.SugaredLogger
	Cfg    Config
	// contains filtered or unexported fields
}

func New

func New(cfg ...func(*Server) error) (*Server, error)

type Summary

type Summary struct {
	Iter                 int                               `json:"iter"`
	AvgDuration          float64                           `json:"avg_duration"`
	DPS                  ResultFloat                       `json:"dps"`
	DamageByChar         []map[string]ResultFloat          `json:"damage_by_char"`
	CharActiveTime       []ResultInt                       `json:"char_active_time"`
	AbilUsageCountByChar []map[string]ResultInt            `json:"abil_usage_count_by_char"`
	ReactionsTriggered   map[combat.ReactionType]ResultInt `json:"reactions_triggered"`
	CharNames            []string                          `json:"char_names"`
}

Jump to

Keyboard shortcuts

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