broker

package
v0.0.0-...-72abcba Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT 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 {
	Subscribe(event string, h Handler) error
	Publish(msg Message, queue string) error
}

type Handler

type Handler func(msg Message) (bool, error)

callback to handling messages

type Logger

type Logger interface {
	Fatalf(tpl string, args ...interface{})
	Errorf(tpl string, args ...interface{})
}

type Message

type Message struct {
	Body    []byte
	Headers map[string]interface{}
}

AMQP message

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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