engine

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAmmoProvider

func GetAmmoProvider(c *config.AmmoProvider) (ammo.Provider, error)

func GetGun

func GetGun(c *config.Gun) (gun.Gun, error)

func GetLimiter

func GetLimiter(c *config.Limiter) (limiter.Limiter, error)

Types

type Counter added in v0.1.2

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

func NewCounter added in v0.1.2

func NewCounter(name string) *Counter

func (*Counter) Add added in v0.1.2

func (c *Counter) Add(delta int64)

func (*Counter) Get added in v0.1.2

func (c *Counter) Get() int64

func (*Counter) Set added in v0.1.2

func (c *Counter) Set(value int64)

func (*Counter) String added in v0.1.2

func (c *Counter) String() string

type Engine

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

func New

func New(cfg config.Global) *Engine

func (*Engine) Serve

func (e *Engine) Serve(ctx context.Context) error

type User

type User struct {
	Name       string
	Ammunition ammo.Provider
	Results    aggregate.ResultListener
	Limiter    limiter.Limiter
	Gun        gun.Gun
}

func (*User) Run

func (u *User) Run(ctx context.Context) error

type UserPool

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

func NewUserPoolFromConfig

func NewUserPoolFromConfig(cfg *config.UserPool) (up *UserPool, err error)

func (*UserPool) Start

func (up *UserPool) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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