Documentation
¶
Index ¶
- Variables
- type Component
- type Config
- type RBForwarder
- func (f *RBForwarder) Close()
- func (f *RBForwarder) GetOrderedReports() <-chan interface{}
- func (f *RBForwarder) GetReports() <-chan interface{}
- func (f *RBForwarder) Produce(data []byte, opts map[string]interface{}, opaque interface{}) error
- func (f *RBForwarder) PushComponents(components []interface{})
- func (f *RBForwarder) Run()
- type Report
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = logrus.NewEntry(log)
Logger for the package
View Source
var Version = "0.5"
Version is the current tag
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component contains information about a pipeline component
type RBForwarder ¶
type RBForwarder struct {
// contains filtered or unexported fields
}
RBForwarder is the main objecto of the package. It has the main methods for send messages and get reports. It has a backend for routing messages between workers
func NewRBForwarder ¶
func NewRBForwarder(config Config) *RBForwarder
NewRBForwarder creates a new Forwarder object
func (*RBForwarder) GetOrderedReports ¶
func (f *RBForwarder) GetOrderedReports() <-chan interface{}
GetOrderedReports is the same as GetReports() but the reports are delivered in order
func (*RBForwarder) GetReports ¶
func (f *RBForwarder) GetReports() <-chan interface{}
GetReports is used by the source to get a report for a sent message. Reports are delivered on the same order that was sent
func (*RBForwarder) Produce ¶
func (f *RBForwarder) Produce(data []byte, opts map[string]interface{}, opaque interface{}) error
Produce is used by the source to send messages to the backend
func (*RBForwarder) PushComponents ¶
func (f *RBForwarder) PushComponents(components []interface{})
PushComponents adds a new component to the pipeline
Source Files
¶
Click to show internal directories.
Click to hide internal directories.