nats

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 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 ConfigNats

type ConfigNats struct {
	DB Item `yaml:"nats"`
}

type Item

type Item struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
}

type Nats

type Nats struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *ConfigNats) *Nats

func (*Nats) Call

func (db *Nats) Call(fn func(conn *nats.EncodedConn) error) error

func (*Nats) Start added in v1.1.0

func (db *Nats) Start() error

func (*Nats) Stop added in v1.1.0

func (db *Nats) Stop() error

Jump to

Keyboard shortcuts

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