Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "check_consensus_sync_status" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Checks consensus 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 ClientInfo ¶ added in v0.0.10
type Config ¶
type Config struct { ClientPattern string `yaml:"clientPattern" json:"clientPattern"` PollInterval helper.Duration `yaml:"pollInterval" json:"pollInterval"` ExpectSyncing bool `yaml:"expectSyncing" json:"expectSyncing"` ExpectOptimistic bool `yaml:"expectOptimistic" json:"expectOptimistic"` ExpectMinPercent float64 `yaml:"expectMinPercent" json:"expectMinPercent"` ExpectMaxPercent float64 `yaml:"expectMaxPercent" json:"expectMaxPercent"` MinSlotHeight int `yaml:"minSlotHeight" json:"minSlotHeight"` WaitForChainProgression bool `yaml:"waitForChainProgression" json:"waitForChainProgression"` }
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.