mq

package
v0.0.0-...-2f1b4d8 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	EventType string    `json:"event_type"`
	SlotID    string    `json:"id_slot"`
	BannerID  string    `json:"id_banner"`
	UsersID   string    `json:"id_users"`
	DateTime  time.Time `json:"date_time"`
}

Message represents event message structure to be sent in MQ.

type Publisher

type Publisher interface {
	io.Closer
	amqp.Acknowledger
	Publish(exchange, key string, mandatory, immediate bool, msg amqp.Publishing) error
}

Publisher is an interface to work with MQ.

Jump to

Keyboard shortcuts

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