npub

package
v0.0.0-...-8c316eb Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(name string, subject string, msg string) error

func PublishByte

func PublishByte(name string, subject string, msg []byte) error

Types

type NPublisher

type NPublisher struct {
	Name string
	Url  string
	Auth string
	Opts []nats.Option
	Conn *nats.Conn
}

func GetInstance

func GetInstance(name string) *NPublisher

func NewNPublisher

func NewNPublisher(name string) *NPublisher

func (*NPublisher) Close

func (np *NPublisher) Close()

func (*NPublisher) Publish

func (np *NPublisher) Publish(subject string, msg string) error

func (*NPublisher) PublishByte

func (np *NPublisher) PublishByte(subject string, msg []byte) error

Jump to

Keyboard shortcuts

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