ns

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultURL     = "nats://nats:4222"
	ClusterID      = "test-cluster"
	LogsSubject    = "amp-logs"
	LogsQGroup     = "amp-logs-queue"
	MetricsSubject = "amp-metrics"
	MetricsQGroup  = "amp-metrics-queue"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NatsStreaming

type NatsStreaming struct {
	// contains filtered or unexported fields
}

NatsStreaming NATS-Streaming wrapper

func NewClient added in v0.9.0

func NewClient(url string, clusterID string, clientID string, timeout time.Duration) *NatsStreaming

NewClient instantiates a NatsStreaming wrapper

func (*NatsStreaming) Close

func (ns *NatsStreaming) Close() error

Close the client

func (*NatsStreaming) Connect

func (ns *NatsStreaming) Connect() error

Connect to NATS-Streaming

func (*NatsStreaming) GetClient

func (ns *NatsStreaming) GetClient() stan.Conn

GetClient return client

Jump to

Keyboard shortcuts

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