Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "check_consensus_attestation_stats" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Check attestation stats for 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 { MinTargetPercent uint64 `yaml:"minTargetPercent" json:"minTargetPercent"` MaxTargetPercent uint64 `yaml:"maxTargetPercent" json:"maxTargetPercent"` MinHeadPercent uint64 `yaml:"minHeadPercent" json:"minHeadPercent"` MaxHeadPercent uint64 `yaml:"maxHeadPercent" json:"maxHeadPercent"` MinTotalPercent uint64 `yaml:"minTotalPercent" json:"minTotalPercent"` MaxTotalPercent uint64 `yaml:"maxTotalPercent" json:"maxTotalPercent"` FailOnCheckMiss bool `yaml:"failOnCheckMiss" json:"failOnCheckMiss"` MinCheckedEpochs uint64 `yaml:"minCheckedEpochs" json:"minCheckedEpochs"` }
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.