Skip to content

Commit

Permalink
Add a SetConfig function to the LogEventProvider interface (#367)
Browse files Browse the repository at this point in the history
* Add setters and getters for config fields
  • Loading branch information
ferglor authored and ettec committed Mar 28, 2024
1 parent a213b62 commit 8294003
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/types/automation/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,17 @@ type Encoder interface {

type LogEventProvider interface {
GetLatestPayloads(context.Context) ([]UpkeepPayload, error)
SetConfig(LogEventProviderConfig)
Start(context.Context) error
Close() error
}

type LogEventProviderConfig struct {
NumLogUpkeeps uint32
FastExecLogsHigh uint32
FastExecLogsLow uint32
}

type RecoverableProvider interface {
GetRecoveryProposals(context.Context) ([]UpkeepPayload, error)
}
Expand Down

0 comments on commit 8294003

Please sign in to comment.