Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChaosTester ¶
type ChaosTester struct {
// contains filtered or unexported fields
}
ChaosTester chaos tester
func NewChaosTester ¶
func NewChaosTester(cfg Config) *ChaosTester
NewChaosTester create chaos tester
func (*ChaosTester) Start ¶
func (t *ChaosTester) Start() error
func (*ChaosTester) Stop ¶
func (t *ChaosTester) Stop() error
type Config ¶
type Config struct {
// Enable chaos tests
Enable bool `toml:"enable"`
// Restart restart tester config
Restart struct {
KillInterval toml.Duration `toml:"kill-interval"`
RestartInterval toml.Duration `toml:"restart-interval"`
Targets []int `toml:"targets"`
KillFunc func(int) error `toml:"-"`
RestartFunc func(int) error `toml:"-"`
} `toml:"restart"`
}
Config chaos config
Click to show internal directories.
Click to hide internal directories.