stan

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package stan provides a NATS Streaming broker

Index

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 ClientID added in v1.4.1

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 added in v1.4.1

func ConnectRetry(v bool) broker.Option

ConnectRetry reconnect to broker in case of errors

func ConnectTimeout added in v1.4.1

func ConnectTimeout(td time.Duration) broker.Option

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

func DurableName added in v1.4.1

func DurableName(name string) broker.Option

DurableName sets the DurableName for the subscriber

func NewBroker

func NewBroker(opts ...broker.Option) broker.Broker

func Options

func Options(opts stan.Options) broker.Option

Options accepts stan.Options

func ServerSubscriberOption added in v1.4.1

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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