Documentation ¶ Index ¶ type Ammo func (a *Ammo) Id() int func (a *Ammo) Request() (*http.Request, *netsample.Sample) func (a *Ammo) Reset(req *http.Request, tag string) func (a *Ammo) SetId(id int) type Provider func NewProvider(fs afero.Fs, fileName string, ...) Provider func (p *Provider) Acquire() (core.Ammo, bool) func (p *Provider) Release(a core.Ammo) func (p *Provider) Run(ctx context.Context) error 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 Source Files ¶ View all Source files ammo.go provider.go Directories ¶ Show internal Expand all Path Synopsis jsonline raw uri Click to show internal directories. Click to hide internal directories.