simple

package
Version: v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ammo

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

func (*Ammo) Id

func (a *Ammo) Id() int

func (*Ammo) Request

func (a *Ammo) Request() (*http.Request, *netsample.Sample)

func (*Ammo) Reset

func (a *Ammo) Reset(req *http.Request, tag string)

func (*Ammo) SetId

func (a *Ammo) SetId(id int)

type Provider

type Provider struct {
	Sink chan *Ammo
	Pool sync.Pool
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(fs afero.Fs, fileName string, start func(ctx context.Context, file afero.File) error) Provider

func (*Provider) Acquire

func (p *Provider) Acquire() (core.Ammo, bool)

func (*Provider) Release

func (p *Provider) Release(a core.Ammo)

func (*Provider) Run

func (p *Provider) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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