broker

package
v0.0.0-...-9fce2f1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 0 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(string, Message) error
	Subscribe(string) (Subscriber, error)
}

type Handler

type Handler func(Message) error

type Message

type Message interface {
	Topic() string
	Timestamp() int64
}

type Options

type Options struct {
}

type Subscriber

type Subscriber interface {
	Unsubscribe() error
	Next() (Message, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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