Documentation ¶
Overview ¶
Package stan provides a NATS Streaming broker
Index ¶
- func AckOnSuccess() broker.SubscribeOption
- func ClusterID(clusterID string) broker.Option
- func NewBroker(opts ...broker.Option) broker.Broker
- func Options(opts stan.Options) broker.Option
- func SubscribeContext(ctx context.Context) broker.SubscribeOption
- func SubscribeOption(opts ...stan.SubscriptionOption) broker.SubscribeOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AckOnSuccess ¶
func AckOnSuccess() broker.SubscribeOption
AckOnSuccess will automatically acknowledge messages when no error is returned
func SubscribeContext ¶
func SubscribeContext(ctx context.Context) broker.SubscribeOption
SubscribeContext set the context for broker.SubscribeOption
func SubscribeOption ¶
func SubscribeOption(opts ...stan.SubscriptionOption) broker.SubscribeOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.