Documentation
¶
Index ¶
- Constants
- Variables
- func From(opts OptionsGetter) shoot.Option[Options, *Options]
- func HandleTopic[T any](handler gap.Handler[T], topic string) shoot.Option[Options, *Options]
- func HandleTopicWithinGroup[T any](group, topic string, handler gap.Handler[T]) shoot.Option[Options, *Options]
- func NewDashboardHandler(opts OptionsGetter) http.Handler
- func WithDrain(ctx context.Context, timeoutSeconds int) shoot.Option[Options, *Options]
- type Event
- type EventPublisher
- type Handler
- type Options
- type OptionsGetter
- type Publisher
- type Txer
Constants ¶
View Source
const ( KeysMessageID = internal.KeysMessageID KeysMessageType = internal.KeysMessageType KeysGroup = internal.KeysGroup KeysCorrelationID = internal.KeysCorrelationID )
Variables ¶
View Source
var ( Version = gap.Version ServiceName = gap.ServiceName DefaultGroup = gap.DefaultGroup WorkerID = gap.WorkerID ClaimBatchSize = gap.ClaimBatchSize MaxRetries = gap.MaxRetries LookbackSeconds = gap.LookbackSeconds PumpIntervalSeconds = gap.PumpIntervalSeconds MaxPublishConcurrency = gap.MaxPublishConcurrency PublishBufferSize = gap.PublishBufferSize WorkConcurrencyFactor = gap.WorkConcurrencyFactor UseDashboard = gap.UseDashboard Inject = gap.Inject )
View Source
var Pair = internal.Pair
View Source
var WaitDrain = pump.WaitDrain
Functions ¶
func HandleTopic ¶
func HandleTopicWithinGroup ¶
func NewDashboardHandler ¶
func NewDashboardHandler(opts OptionsGetter) http.Handler
Types ¶
type EventPublisher ¶
type EventPublisher = internal.EventPublisher
func NewEventPublisher ¶
func NewEventPublisher(opts ...shoot.Option[Options, *Options]) EventPublisher
type OptionsGetter ¶
type OptionsGetter internal.OptionsGetter
Click to show internal directories.
Click to hide internal directories.