package module
v0.0.0-...-4fe21aa Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2020 License: Apache-2.0 Imports: 13 Imported by: 3



Package stan provides a NATS Streaming broker



This section is empty.


This section is empty.


func AckOnSuccess

func AckOnSuccess() broker.SubscribeOption

AckOnSuccess will automatically acknowledge messages when no error is returned

func ClientID

func ClientID(clientID string) broker.Option

ClientID specify client id to connect

func ClusterID

func ClusterID(clusterID string) broker.Option

ClusterID specify cluster id to connect

func ConnectRetry

func ConnectRetry(v bool) broker.Option

ConnectRetry reconnect to broker in case of errors

func ConnectTimeout

func ConnectTimeout(td time.Duration) broker.Option

ConnectTimeout timeout for connecting to broker -1 infinitive or time.Duration value

func DurableName

func DurableName(name string) broker.Option

DurableName sets the DurableName for the subscriber

func NewBroker

func NewBroker(opts broker.Broker

func Options

func Options(opts stan.Options) broker.Option

Options accepts stan.Options

func ServerSubscriberOption

func ServerSubscriberOption(opts ...stan.SubscriptionOption) server.SubscriberOption

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


This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL