nats

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NatsClient

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

func NewNatClient

func NewNatClient(ctx *context.Context, url string) (natsClient NatsClient, err error)

func (*NatsClient) Disconnect

func (c *NatsClient) Disconnect(ctx *context.Context) error

func (*NatsClient) Publish

func (c *NatsClient) Publish(ctx *context.Context, topic string, data []byte) error

func (*NatsClient) Subscribe

func (c *NatsClient) Subscribe(ctx *context.Context, topic string) error

Jump to

Keyboard shortcuts

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