pipeline

package module
v0.0.0-...-0d796e7 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: MIT Imports: 1 Imported by: 0

README

pipeline

Go based Pipeline wrappers that saves a lot of boilerplate code

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Log allows attaching a logger to the library
	Log *logrus.Logger
)

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Init(p Pipeline)
	Handle(message *Message) error
}

Handler provides a handle for various pipeling mechanism and settings

type Message

type Message struct {
	ID              string
	Data            []byte
	Attributes      map[string]string
	InternalMessage interface{}
}

Message abstract a pipeline message structure

type Pipeline

type Pipeline interface {
	Start() error
	Stop()
	AckMessage(message *Message) error
	PostMessage(outboundTopciName string, message *Message) error
}

Pipeline interface to communicate with various implementations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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