Documentation
¶
Index ¶
- func ValidateRetryEndeavorInAttempt(prefix string, attempt *entities.Attempt) error
- func ValidateRetrySelectAttemptTrigger(prefix string, attempt *entities.AttemptTrigger) error
- func ValidateScannerExecuteAttemptTask(prefix string, attempt *entities.AttemptTask) error
- type Attempt
- type Retry
- type RetryEndeavorIn
- type RetryEndeavorOut
- type RetrySelectIn
- type RetrySelectOut
- type RetryTriggerIn
- type RetryTriggerOut
- type Scanner
- type ScannerExecuteIn
- type ScannerExecuteOut
- type ScannerScheduleIn
- type ScannerScheduleOut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateRetrySelectAttemptTrigger ¶
func ValidateRetrySelectAttemptTrigger(prefix string, attempt *entities.AttemptTrigger) error
func ValidateScannerExecuteAttemptTask ¶
func ValidateScannerExecuteAttemptTask(prefix string, attempt *entities.AttemptTask) error
Types ¶
type Attempt ¶
func New ¶
func New( conf *config.Config, logger logging.Logger, infra *infrastructure.Infrastructure, repositories repositories.Repositories, ) Attempt
type Retry ¶
type Retry interface { Trigger(ctx context.Context, in *RetryTriggerIn) (*RetryTriggerOut, error) Select(ctx context.Context, in *RetrySelectIn) (*RetrySelectOut, error) Endeavor(ctx context.Context, in *RetryEndeavorIn) (*RetryEndeavorOut, error) }
type RetryEndeavorIn ¶
func (*RetryEndeavorIn) Validate ¶
func (in *RetryEndeavorIn) Validate() error
type RetryEndeavorOut ¶
type RetrySelectIn ¶
type RetrySelectIn struct { BatchSize int Counter int Triggers map[string]*entities.AttemptTrigger }
func (*RetrySelectIn) Validate ¶
func (in *RetrySelectIn) Validate() error
type RetrySelectOut ¶
type RetryTriggerIn ¶
type RetryTriggerIn struct {
Buckets []config.AttemptBucket
}
func (*RetryTriggerIn) Validate ¶
func (in *RetryTriggerIn) Validate() error
type RetryTriggerOut ¶
type Scanner ¶
type Scanner interface { Schedule(ctx context.Context, in *ScannerScheduleIn) (*ScannerScheduleOut, error) Execute(ctx context.Context, in *ScannerExecuteIn) (*ScannerExecuteOut, error) }
type ScannerExecuteIn ¶
type ScannerExecuteIn struct { BatchSize int Tasks map[string]*entities.AttemptTask }
func (*ScannerExecuteIn) Validate ¶
func (in *ScannerExecuteIn) Validate() error
type ScannerExecuteOut ¶
type ScannerScheduleIn ¶
type ScannerScheduleIn struct { BatchSize int Buckets []config.AttemptBucket }
func (*ScannerScheduleIn) Validate ¶
func (in *ScannerScheduleIn) Validate() error
type ScannerScheduleOut ¶
Click to show internal directories.
Click to hide internal directories.