Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{
Transformation: empty,
ToPath: "",
}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Transformation interface{} `json:"transformation,omitempty"` ToPath string `json:"toPath,omitempty"` FromPath string `json:"fromPath,omitempty"` // optional, if present apply transformation to sub event at path, if sub event is array apply transformation to all elements of array }
Config can be passed into NewFilter() in order to configure the behavior of the sender.
func (Config) WithDefaults ¶
WithDefaults will set default values
Click to show internal directories.
Click to hide internal directories.