stan

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: Apache-2.0 Imports: 9 Imported by: 3

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 ClusterID

func ClusterID(clusterID string) broker.Option

ClusterID specify cluster id to connect

func NewBroker

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

func Options

func Options(opts stan.Options) broker.Option

Options accepts stan.Options

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.

Directories

Path Synopsis
module

Jump to

Keyboard shortcuts

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