broker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NATSKey = "nats"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	PublishInterface
	SubscribeInterface
}

func New

func New(kind, url string) (Handler, error)

type Message

type Message struct {
	Type   string
	Object interface{}
}

type PublishInterface

type PublishInterface interface {
	Publish(string, interface{}) error
	PublishWithCallback(string, string, interface{}) error
}

type SubscribeInterface

type SubscribeInterface interface {
	Subscribe(string, string) error
	SubscribeWithHandler(string, string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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