event

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const NATS_RECONNECT_BUF_SIZE = 5 * 1024 * 1024

Variables

This section is empty.

Functions

func Publish

func Publish[T any](nb *NatsBus, msg T, topic string) error

Not a method due to Golang limitations on generics there, so we just pass the bus as a parameter.

Types

type NatsBus

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

func NewNatsBus

func NewNatsBus(logger hclog.Logger) *NatsBus

func (*NatsBus) Close

func (nb *NatsBus) Close()

func (*NatsBus) Connect

func (nb *NatsBus) Connect(server string) error

Jump to

Keyboard shortcuts

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