cmq

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CMQ

type CMQ struct {
	Conn   *nats.Conn
	JConn  nats.JetStreamContext
	Logger *zap.Logger
}

func New

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

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

func (*CMQ) Stream

func (c *CMQ) Stream(sc *nats.StreamConfig) error

type Config

type Config struct {
	URL string `koanf:"url"`
}

Jump to

Keyboard shortcuts

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