streaming

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ClientIDLen = 15

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL       string `koanf:"url"`
	ClusterID string `koanf:"clusterid"`
	Group     string `koanf:"group"`
}

type Streaming

type Streaming struct {
	Conn   stan.Conn
	Logger *zap.Logger
	Group  string
}

func New

func New(cfg Config, logger *zap.Logger) (*Streaming, error)

New creates a new connection to nats cluster with streaming support.

Jump to

Keyboard shortcuts

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