natsbridge

package
v0.0.0-...-58c4a32 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-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 Bridge

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

func New

func New(url string) (*Bridge, error)

TODO drain, ctx

func (*Bridge) Receive

func (b *Bridge) Receive(hubID string, fn func(string, []byte)) error

func (*Bridge) ReceiveHeartbeat

func (b *Bridge) ReceiveHeartbeat(hubID string, fn func(string, []string)) error

func (*Bridge) Send

func (b *Bridge) Send(hubID, topic string, msg []byte) error

func (*Bridge) SendHeartbeat

func (b *Bridge) SendHeartbeat(hubID, userID string, topics []string) error

Jump to

Keyboard shortcuts

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