stan

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

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 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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.Option) 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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