nats

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Nats

func Nats(conn *nats.Conn) registry.Option

Nats initialyse service registry with nats connection

func NewPub

func NewPub(c *nats.Conn) pubsub.Pubsub

NewPub return NATS Pubsub

func SetDefault added in v0.1.0

func SetDefault(c *nats.Conn, opts ...registry.Option) (r registry.Registry, err error)

SetDefault with a nats connection

func SetLogLevel added in v0.2.0

func SetLogLevel(level logrus.Level)

SetLogLevel log level

func WithNatsUrl added in v0.4.9

func WithNatsUrl(natsUrls string) registry.Option

Types

This section is empty.

Jump to

Keyboard shortcuts

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