Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalYAML ¶
func NewMapstructureDecoder ¶
func NewMapstructureDecoder(target any) (*mapstructure.Decoder, error)
Types ¶
type Config ¶
type Config struct {
Seed uint64 `mapstructure:"seed" yaml:"seed" json:"seed"`
WallclockStart time.Time `mapstructure:"wallclockStart" yaml:"wallclockStart" json:"wallclockStart"`
Duration time.Duration `mapstructure:"duration" yaml:"duration" json:"duration"`
Script []ScriptAction `mapstructure:"script" yaml:"script" json:"script"`
Dryrun bool `mapstructure:"dryrun" yaml:"dryrun" json:"dryrun"`
OTLPDestination OTLPDestination `mapstructure:"otlpDestination" yaml:"otlpDestination" json:"otlpDestination"`
DumpJSON bool `mapstructure:"dumpJSON" yaml:"dumpJSON" json:"dumpJSON"`
}
func LoadConfigs ¶
type OTLPDestination ¶
type ScriptAction ¶
type ScriptAction struct {
At time.Duration `mapstructure:"at" yaml:"at" json:"at"`
To time.Duration `mapstructure:"to" yaml:"to" json:"to"`
Name string `mapstructure:"name" yaml:"name" json:"name"`
Type string `mapstructure:"type" yaml:"type" json:"type"`
Spec map[string]any `mapstructure:"spec" yaml:"spec" json:"spec"`
}
Click to show internal directories.
Click to hide internal directories.