stanutil

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(sc *stan.Conn, logger *zap.SugaredLogger) (err error)

Close must be the last call to close the connection

func Connect

func Connect(clusterId string, clientId string, natsUrl string, logger *zap.SugaredLogger) (*stan.Conn, error)

Connect creates a new NATS-Streaming connection

func Publish

func Publish(sc *stan.Conn, subj string, msg *[]byte, logger *zap.SugaredLogger) (err error)

Publish a message to a subject

Types

This section is empty.

Jump to

Keyboard shortcuts

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