nats

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(opts *cli.Options) (*nats.Conn, error)

NewClient creates a new Nats client connection

func Read

func Read(opts *cli.Options) error

func Write

func Write(opts *cli.Options) error

Write performs necessary setup and calls Nats.Write() to write the actual message

Types

type Nats

type Nats struct {
	Options *cli.Options
	MsgDesc *desc.MessageDescriptor
	Client  *nats.Conn
	// contains filtered or unexported fields
}

func (*Nats) Read

func (n *Nats) Read() error

func (*Nats) Write

func (n *Nats) Write(value []byte) error

Write publishes a message to a NATS subject

Jump to

Keyboard shortcuts

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