Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Map: []FromTo{}, }
Functions ¶
This section is empty.
Types ¶
type Comparison ¶
type Config ¶
type Config struct {
Map []FromTo `json:"map,omitempty"`
Path string `json:"path,omitempty"`
ArrayPath string `json:"arrayPath,omitempty"` // if arrayPath points to array, iterate over all elements and apply from and to paths relatively
DefaultValue interface{} `json:"defaultValue,omitempty"`
}
Config can be passed into NewFilter() in order to configure the behavior of the sender.
func (Config) WithDefaults ¶
type FromTo ¶
type FromTo struct {
From interface{} `json:"from,omitempty"`
To interface{} `json:"to,omitempty"`
Comparison *Comparison `json:"comparison,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.