nats

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nats

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

func New

func New() *Nats

func (*Nats) Close

func (n *Nats) Close()

func (*Nats) Connect

func (n *Nats) Connect(url string) (err error)

func (*Nats) Flush

func (n *Nats) Flush() error

func (*Nats) Pub

func (n *Nats) Pub(subj string, data []byte) error

func (*Nats) Req

func (n *Nats) Req(subj string, data []byte) ([]byte, error)

func (*Nats) SubASync

func (n *Nats) SubASync(subject string, callback func(data []byte)) (err error)

func (*Nats) SubSync

func (n *Nats) SubSync(subject string) ([]byte, error)

func (*Nats) UnSub

func (n *Nats) UnSub(subject string, drained bool) (err error)

type SubInfo

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

Jump to

Keyboard shortcuts

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