Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "check_execution_sync_status" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Checks execution clients for their sync status.", Config: DefaultConfig(), NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct { ClientPattern string `yaml:"clientPattern" json:"clientPattern"` PollInterval human.Duration `yaml:"pollInterval" json:"pollInterval"` ExpectSyncing bool `yaml:"expectSyncing" json:"expectSyncing"` ExpectMinPercent float64 `yaml:"expectMinPercent" json:"expectMinPercent"` ExpectMaxPercent float64 `yaml:"expectMaxPercent" json:"expectMaxPercent"` MinBlockHeight int `yaml:"minBlockHeight" json:"minBlockHeight"` WaitForChainProgression bool `yaml:"waitForChainProgression" json:"waitForChainProgression"` }
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) Description ¶
func (*Task) LoadConfig ¶
func (*Task) Logger ¶
func (t *Task) Logger() logrus.FieldLogger
Click to show internal directories.
Click to hide internal directories.