engine

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: 10 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 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