Documentation ¶
Index ¶
- Constants
- func DetermineLeader(dutySlot phase0.Slot, committee []*types.CommitteeMember) types.OperatorID
- func EqualFunc(val any) func(s string) bool
- func FatalListener(ctx context.Context, logger *zap.Logger, cli DockerCLI) error
- func Match(pctx context.Context, logger *zap.Logger, cli DockerCLI) error
- func ParseAndExtractDutyInfo(conditionLog string, corruptedValidatorIndex string) (string, phase0.Slot, error)
- func ProcessLogs(ctx context.Context, logger *zap.Logger, cli DockerCLI, ...) error
- func StartCondition(pctx context.Context, logger *zap.Logger, condition []string, ...) (string, error)
- func VerifyBLSSignature(pctx context.Context, logger *zap.Logger, cli DockerCLI, share *CorruptedShare) error
- type CorruptedShare
- type DockerCLI
- type Feeder
- type KeyValue
- type LogCatcher
Constants ¶
View Source
const MesasgeKey = "msg" // todo: pass to struct/load from config
Variables ¶
This section is empty.
Functions ¶
func DetermineLeader ¶
func DetermineLeader(dutySlot phase0.Slot, committee []*types.CommitteeMember) types.OperatorID
func FatalListener ¶
func ParseAndExtractDutyInfo ¶
func ProcessLogs ¶
func ProcessLogs(ctx context.Context, logger *zap.Logger, cli DockerCLI, committee []*types.CommitteeMember, leader types.OperatorID, dutyID string, dutySlot phase0.Slot, corruptedOperator types.OperatorID) error
func StartCondition ¶
func VerifyBLSSignature ¶
Types ¶
type CorruptedShare ¶
type CorruptedShare struct {}
type LogCatcher ¶
type LogCatcher struct { Name string LogMessage string Fields map[string]func(string) bool // key-value checker // contains filtered or unexported fields }
func NewLogAction ¶
func (*LogCatcher) Action ¶
func (lc *LogCatcher) Action(logEntry string)
func (*LogCatcher) AddFieldCondition ¶
func (lc *LogCatcher) AddFieldCondition(key string, finder func(string) bool)
Click to show internal directories.
Click to hide internal directories.