Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "check_consensus_validator_status" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Check validator status on consensus chain.", Config: DefaultConfig(), NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct { ValidatorPubKey string `yaml:"validatorPubKey" json:"validatorPubKey"` ValidatorNamePattern string `yaml:"validatorNamePattern" json:"validatorNamePattern"` ValidatorIndex *uint64 `yaml:"validatorIndex" json:"validatorIndex"` ValidatorStatus []string `yaml:"validatorStatus" json:"validatorStatus"` FailOnCheckMiss bool `yaml:"failOnCheckMiss" json:"failOnCheckMiss"` }
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.