Documentation ¶
Index ¶
- func Activity[I, O any](arn string, handler Handler[I, O], options ...Options) *activity[I, O]
- type Handler
- type Logger
- type Options
- func WithContext(ctx context.Context) Options
- func WithHeartBeatDelay(delay time.Duration) Options
- func WithLogger(logger Logger) Options
- func WithPollInterval(pollInterval time.Duration) Options
- func WithPollersCount(pollers int) Options
- func WithSFN(sfn sfniface.SFNAPI) Options
- func WithWorkersCount(workers int) Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options interface {
// contains filtered or unexported methods
}
func WithContext ¶
Polling and Activity Handler can be bound to context
func WithHeartBeatDelay ¶
Overrides the default HeartBeatDelay (60 Seconds)
func WithPollInterval ¶
Overrides the default Microsecond interval between consecutive Polls
func WithPollersCount ¶
Overrides the default PollersCount (3)
func WithWorkersCount ¶
Overrides the default WorkersCount (3)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.