cmq

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EventsChannel = "events"
	QueueName     = "saf"
	DurableName   = "saf"
)

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)

func (*CMQ) Streams

func (c *CMQ) Streams() 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