nats

package
v0.0.0-...-765649b Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChannelName = "EVENTS"
	SubjectName = "EVENTS.*"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

type Nats

type Nats struct {
	Connection *nats.Conn
	JSCtx      nats.JetStreamContext
	Logger     *zap.Logger
}

func NewConnection

func NewConnection(cfg Config, logger *zap.Logger) (*Nats, error)

func (*Nats) CreateStream

func (n *Nats) CreateStream() error

Jump to

Keyboard shortcuts

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