simple

package
Version: v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MPL-2.0 Imports: 9 Imported by: 9

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 added in v0.3.3

func (a *Ammo) ID() int

func (*Ammo) Invalidate added in v0.3.1

func (a *Ammo) Invalidate()

func (*Ammo) IsInvalid added in v0.3.1

func (a *Ammo) IsInvalid() bool

func (*Ammo) IsValid added in v0.3.1

func (a *Ammo) IsValid() bool

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 added in v0.3.3

func (a *Ammo) SetID(id int)

type Provider

type Provider struct {
	Sink chan *Ammo
	Pool sync.Pool

	core.ProviderDeps
	// 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, deps core.ProviderDeps) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL