broker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	Publish(ctx context.Context, topic string, message []byte) error
	Subscribe(topic string, handler EventHandler) error
}

func NewApmBroker

func NewApmBroker(core Broker) Broker

func NewKafkaBroker

func NewKafkaBroker(url string) (Broker, error)

func NewNatsBroker

func NewNatsBroker(url string) (Broker, error)

type EventHandler

type EventHandler func([]byte)

Jump to

Keyboard shortcuts

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