config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2016 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmmoProvider

type AmmoProvider struct {
	AmmoType   string
	AmmoSource string // filename for ammo file (decoder based on ammo type)
	AmmoLimit  int    // limit of ammos, default is 0 - infinite ammos
	Passes     int    // number of passes, default is 0 - infinite passes
}

type CompositeLimiter

type CompositeLimiter struct {
	Steps []Limiter
}

type Global

type Global struct {
	Pools []UserPool
}

func NewGlobalFromJSON

func NewGlobalFromJSON(jsonDoc []byte) (gc Global, err error)

type Gun

type Gun struct {
	GunType    string
	Parameters map[string]interface{}
}

type Limiter

type Limiter struct {
	LimiterType string
	Parameters  map[string]interface{}
}

type ResultListener

type ResultListener struct {
	ListenerType string
	Destination  string
}

type User

type User struct {
	Name           string
	Gun            *Gun
	AmmoProvider   AmmoProvider
	ResultListener ResultListener
	Limiter        *Limiter
}

type UserPool

type UserPool struct {
	Name           string
	Gun            *Gun
	AmmoProvider   *AmmoProvider
	ResultListener *ResultListener
	UserLimiter    *Limiter
	StartupLimiter *Limiter
	SharedSchedule bool // wether or not will all Users from this pool have shared schedule
}

Jump to

Keyboard shortcuts

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