common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	//Connect(url string, opts interface{}) error
	Get()
	GetDefault() chan Message
}

type Message

type Message struct {
	// Source split by path separator
	TS time.Time
	// true if it is TS from actual queue, false if it is just receive time
	TSReliable bool
	Source     []string
	Headers    map[string]interface{}
	Body       []byte
}

Message is common message type used by printing/formatting function. it is backend job to fit incoming messages into that template

Jump to

Keyboard shortcuts

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