Documentation
¶
Index ¶
- Constants
- Variables
- func HandleTopic[T any](handler ingap.Handler[T], topic string) shoot.Option[Options, *Options]
- func HandleTopicWithinGroup[T any](group, topic string, handler ingap.Handler[T]) shoot.Option[Options, *Options]
- func Register(opts ...shoot.Option[Options, *Options])
- type BrokerOptions
- type BrokerOptionsGetter
- type Event
- type EventPublisher
- type Gap
- 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 KeysBrokerName = internal.KeysBrokerName KeysBrokerType = internal.KeysBrokerType )
Variables ¶
View Source
var ( Context = ingap.Context Version = ingap.Version ServiceName = ingap.ServiceName DefaultGroup = ingap.DefaultGroup WorkerID = ingap.WorkerID ClaimBatchSize = ingap.ClaimBatchSize MaxRetries = ingap.MaxRetries LookbackSeconds = ingap.LookbackSeconds PumpIntervalSeconds = ingap.PumpIntervalSeconds MaxPublishConcurrency = ingap.MaxPublishConcurrency PublishBufferSize = ingap.PublishBufferSize WorkConcurrencyFactor = ingap.WorkConcurrencyFactor UseDashboard = ingap.UseDashboard Inject = ingap.Inject BrokerName = ingap.BrokerName ErrRuntimeStopping = ingap.ErrRuntimeStopping )
View Source
var Pair = internal.Pair
Functions ¶
func HandleTopic ¶
func HandleTopicWithinGroup ¶
Types ¶
type BrokerOptions ¶
type BrokerOptions = ingap.BrokerOptions
type BrokerOptionsGetter ¶
type BrokerOptionsGetter internal.BrokerOptionsGetter
type EventPublisher ¶
type EventPublisher = internal.EventPublisher
type Gap ¶
type Gap struct {
// contains filtered or unexported fields
}
Gap owns the shared storage, pump, dashboard, subscriptions, and lifecycle of an application. Broker-specific configuration belongs to publishers.
func (*Gap) DashboardHandler ¶
func (*Gap) NewEventPublisher ¶
func (g *Gap) NewEventPublisher(opts ...shoot.Option[BrokerOptions, *BrokerOptions]) EventPublisher
type OptionsGetter ¶
type OptionsGetter internal.OptionsGetter
type Publisher ¶
func NewPublisher ¶
func NewPublisher[T any](g *Gap, opts ...shoot.Option[BrokerOptions, *BrokerOptions]) Publisher[T]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.
