Documentation
¶
Index ¶
Constants ¶
View Source
const ( KindJmespath = "jmespath" KindJsonata = "jsonata" )
Variables ¶
View Source
var (
ErrNotAMap = errors.New("interface{} is not a struct")
)
View Source
var (
ErrUnknownTransformer = errors.New("unkown transformer")
)
Functions ¶
This section is empty.
Types ¶
type JmesTransformer ¶
type JmesTransformer struct {
Expression string `hcl:"expression"`
// contains filtered or unexported fields
}
func (*JmesTransformer) Initialize ¶
func (jt *JmesTransformer) Initialize() (err error)
type JsonataTransformer ¶
type JsonataTransformer struct {
Expression string `hcl:"expression"`
// contains filtered or unexported fields
}
func (*JsonataTransformer) Initialize ¶
func (jt *JsonataTransformer) Initialize() (err error)
type Transformation ¶
type Transformation struct {
ID string
Kind string
Subscriptions []string
Broker pubsub.Broker
Subscriber pubsub.Subscriber
BufferSize int
// contains filtered or unexported fields
}
func New ¶
func New(id, kind string, bufferSize int, subscriptions []string, transformer TransformerImpl) (*Transformation, error)
Click to show internal directories.
Click to hide internal directories.