scenario

package
v0.5.25 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProvAmmo

type ProvAmmo interface {
	SetID(id uint64)
	Clone() ProvAmmo
}

type Provider

type Provider[A ProvAmmo] struct {
	base.ProviderBase
	// contains filtered or unexported fields
}

func (*Provider[A]) Acquire

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

func (*Provider[A]) Release

func (p *Provider[A]) Release(_ core.Ammo)

func (*Provider[A]) Run

func (p *Provider[A]) Run(ctx context.Context, deps core.ProviderDeps) error

func (*Provider[A]) SetAmmos

func (p *Provider[A]) SetAmmos(ammos []A)

func (*Provider[A]) SetConfig

func (p *Provider[A]) SetConfig(conf ProviderConfig)

func (*Provider[A]) SetSink

func (p *Provider[A]) SetSink(sink chan A)

type ProviderConfig

type ProviderConfig struct {
	File            string
	Limit           uint
	Passes          uint
	ContinueOnError bool
	MaxAmmoSize     int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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