nats_streaming

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 17 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

Types

type NatsStreaming

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

func (*NatsStreaming) Read

func (n *NatsStreaming) Read() error

func (*NatsStreaming) Write

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

Write publishes a message to a NATS streaming channel. The publish is synchronous, and will not complete until an ACK has been received by the server

Jump to

Keyboard shortcuts

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