nats

package
v0.0.0-...-36d8597 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct{}

type NATS

type NATS struct {
	*Config
	// contains filtered or unexported fields
}

func New

func New() *NATS

func (*NATS) Close

func (mq *NATS) Close() error

func (*NATS) Init

func (mq *NATS) Init(ctx context.Context) error

func (*NATS) Publish

func (mq *NATS) Publish(ctx context.Context, target string, message query.Message) error

func (*NATS) Subscribe

func (mq *NATS) Subscribe(target string, message query.Response) error

func (*NATS) UnSubscribe

func (mq *NATS) UnSubscribe(target string) error

Jump to

Keyboard shortcuts

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