nats

package
v0.0.0-...-21faf40 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNatsHub

func NewNatsHub(opts HubOptions) (prelude.Huber, error)

TODO: we need to manage connection later in case the connect is disconnected

Types

type Hub

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

func (*Hub) Publish

func (hub *Hub) Publish(topic string, event cloudevents.Event) error

func (*Hub) QueueSubscribe

func (hub *Hub) QueueSubscribe(topic string) error

func (*Hub) Router

func (hub *Hub) Router() *prelude.Router

func (*Hub) SetRouter

func (hub *Hub) SetRouter(router *prelude.Router)

type HubOptions

type HubOptions struct {
	URL   string
	Group string
}

Jump to

Keyboard shortcuts

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