Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blackhole ¶
type Blackhole struct{}
Blackhole pipe consumes messages and silently discards them
type Divert ¶
type Divert struct {
// contains filtered or unexported fields
}
Divert propagates Messages to downstream Consumer until in Divert mode. When entering in divert mode pipe sends predefined message to downstream. Pipe sends last consumed message when exit divert mode.
func (*Divert) ConsumeMessage ¶
Consume message from upstream and resend it to downstream then not in divert mode. Otherwise send predefined divert message.
type Fn ¶
func (*Fn) GetConsumer ¶
type Lift ¶
type Lift struct {
// contains filtered or unexported fields
}
Lift pipe holds set catalog of consumed map[string]string messages and propagates them to downstream as name:map[message-id+k]=v. To reset catalog pipe send map[id]map[k]string message with empty message id.
type Slice ¶
type Slice struct {
// contains filtered or unexported fields
}
Slicer pipe accepts map[string]interface{} messages and converts them to []interface{}
type StrictPipe ¶
type StrictPipe struct {
// contains filtered or unexported fields
}
Strict pipe consumes flatmap messages only with predeclared IDs. If at least one of declared messages or consumed message is empty Strict pipe send empty message to downstream. If all messages are not empty Strict pipe combines all messages as <message-id>.<flatmap-key> = <flatmap-value> and sends result to downstream.
func (*StrictPipe) ConsumeMessage ¶
func (p *StrictPipe) ConsumeMessage(message bus.Message) (err error)