Documentation ¶
Index ¶
- Variables
- func RandBetween[T constraints.Integer, T2 constraints.Integer](target *T, lower T2, upper T2)
- func RandBool[T ~bool](target *T)
- func RegisterAction(value any)
- type Action
- type ActionMaker
- type Cleanup
- type ConfigItems
- type CreatedAt
- type Def
- func (_ Def) CPUProfile(enable EnableCPUProfile) Operators
- func (_ Def) CreatedAt() CreatedAt
- func (_ Def) CreatedAtConfigItem(t CreatedAt) ConfigItems
- func (_ Def) DoAction(do Do) (doAction doAction)
- func (_ Def) DumbCleanup() Cleanup
- func (_ Def) DumbExecuteFuncs() (_ Start, _ Stop, _ Do)
- func (_ Def) EnableCPUProfile() EnableCPUProfile
- func (_ Def) EnableCPUProfileConfig(enable EnableCPUProfile) ConfigItems
- func (_ Def) Execute(start Start, stop Stop, do Do, mainAction MainAction, ops Operators, ...) Execute
- func (_ Def) MainActionConfigItem(action MainAction) ConfigItems
- func (_ Def) NamedConfigItems(items ConfigItems) (nameds []NamedConfigItem, m map[string]NamedConfigItem)
- func (_ Def) ReadConfig(nameds map[string]NamedConfigItem) ReadConfig
- func (_ Def) TempDir() (dir TempDir, cleanup Cleanup)
- func (_ Def) UUID() uuid.UUID
- func (_ Def) UUIDConfigItem(id uuid.UUID) ConfigItems
- func (_ Def) WriteConfig(nameds []NamedConfigItem) WriteConfig
- type Do
- type EnableCPUProfile
- type Execute
- type MainAction
- type NamedConfigItem
- type Operator
- type Operators
- type ParallelAction
- type ReadConfig
- type SequentialAction
- type Start
- type Stop
- type TempDir
- type WriteConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrActionNotRegistered = errors.New("action not registered")
Functions ¶
func RandBetween ¶
func RandBetween[T constraints.Integer, T2 constraints.Integer](target *T, lower T2, upper T2)
func RegisterAction ¶
func RegisterAction(value any)
Types ¶
type Action ¶
type Action interface { }
func RandomActionTree ¶
func RandomActionTree( makers []ActionMaker, numActions int, ) Action
type ActionMaker ¶
type ActionMaker = func() Action
type ConfigItems ¶
type ConfigItems []any
type Def ¶
type Def struct{}
func (Def) CPUProfile ¶
func (_ Def) CPUProfile( enable EnableCPUProfile, ) Operators
func (Def) CreatedAtConfigItem ¶
func (_ Def) CreatedAtConfigItem( t CreatedAt, ) ConfigItems
func (Def) DumbCleanup ¶
func (Def) EnableCPUProfile ¶
func (_ Def) EnableCPUProfile() EnableCPUProfile
func (Def) EnableCPUProfileConfig ¶
func (_ Def) EnableCPUProfileConfig( enable EnableCPUProfile, ) ConfigItems
func (Def) MainActionConfigItem ¶
func (_ Def) MainActionConfigItem( action MainAction, ) ConfigItems
func (Def) NamedConfigItems ¶
func (_ Def) NamedConfigItems( items ConfigItems, ) ( nameds []NamedConfigItem, m map[string]NamedConfigItem, )
func (Def) ReadConfig ¶
func (_ Def) ReadConfig( nameds map[string]NamedConfigItem, ) ReadConfig
func (Def) UUIDConfigItem ¶
func (_ Def) UUIDConfigItem( id uuid.UUID, ) ConfigItems
func (Def) WriteConfig ¶
func (_ Def) WriteConfig( nameds []NamedConfigItem, ) WriteConfig
type EnableCPUProfile ¶
type EnableCPUProfile bool
type MainAction ¶
type MainAction struct {
Action Action
}
func (*MainAction) UnmarshalXML ¶
func (t *MainAction) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error)
type NamedConfigItem ¶
type ParallelAction ¶
type ParallelAction struct {
Actions []Action
}
func Par ¶
func Par(actions ...Action) ParallelAction
func (ParallelAction) MarshalXML ¶
func (s ParallelAction) MarshalXML(e *xml.Encoder, start xml.StartElement) (err error)
func (*ParallelAction) UnmarshalXML ¶
func (s *ParallelAction) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error)
type SequentialAction ¶
type SequentialAction struct {
Actions []Action
}
func Seq ¶
func Seq(actions ...Action) SequentialAction
func (SequentialAction) MarshalXML ¶
func (s SequentialAction) MarshalXML(e *xml.Encoder, start xml.StartElement) (err error)
func (*SequentialAction) UnmarshalXML ¶
func (s *SequentialAction) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error)
type WriteConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.