natsbroker

package
v0.0.0-...-668d2f7 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Component = "nats-broker"
)

Variables

This section is empty.

Functions

func Create

func Create(options ...nats.Option) framework.Component

Types

type Broker

type Broker interface {
	Client() *nats.Conn
	Publish(topic string, msg proto.Message) error
}

func Get

func Get(service framework.Service) (Broker, error)

Jump to

Keyboard shortcuts

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