natsTransport

package
v0.0.0-...-1b94b40 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MPL-2.0 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 {
	Server string
	Port   string
	Auth   string //TODO unlikely to be a string, but no auth for now
}

type NATS

type NATS struct {
	Conn *nats.Conn
	Conf Config
}

func (*NATS) CloseConn

func (n *NATS) CloseConn() error

func (*NATS) Compose

func (n *NATS) Compose(raw any) ([]byte, error)

func (*NATS) OpenConn

func (n *NATS) OpenConn(config any) error

func (*NATS) Publish

func (n *NATS) Publish(target string, message []byte) error

Jump to

Keyboard shortcuts

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