bus

package
v1.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	QueueWebhook = "webhook"
	QueueAudit   = "audit"

	RoutingKeyRequest = "request"
)

Variables

This section is empty.

Functions

func Notify

func Notify(msg message.Message) error

Types

type Bus

type Bus struct {
	Name    string
	Url     string
	Conn    *amqp.Connection
	Channel *amqp.Channel
}
var DefaultBus *Bus

func NewBus

func NewBus(url string) (*Bus, error)

func (*Bus) Init

func (bus *Bus) Init() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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