Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProductFunc = func(productFunc api.ProductFunc, codec Codec) api.ProductFunc { return func(event api.Event) api.Result { if codec != nil { if _, err := codec.Decode(event); err != nil { log.Error("source codec decode failed: %v", err) } } productFunc(event) return result.Success() } }
Functions ¶
Types ¶
type Config ¶
type SourceCodec ¶
type SourceCodec interface {
SetCodec(c Codec)
}
Click to show internal directories.
Click to hide internal directories.