Documentation
¶
Index ¶
- type Convert
- func (c *Convert) Apply(es ...*formatters.EventMsg) []*formatters.EventMsg
- func (c *Convert) Init(cfg interface{}, opts ...formatters.Option) error
- func (c *Convert) WithActions(act map[string]map[string]interface{})
- func (c *Convert) WithLogger(l *log.Logger)
- func (c *Convert) WithTargets(tcs map[string]*types.TargetConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Convert ¶
type Convert struct {
Values []string `mapstructure:"value-names,omitempty" json:"value-names,omitempty"`
Type string `mapstructure:"type,omitempty" json:"type,omitempty"`
Debug bool `mapstructure:"debug,omitempty" json:"debug,omitempty"`
// contains filtered or unexported fields
}
Convert converts the value with key matching one of regexes, to the specified Type
func (*Convert) Apply ¶
func (c *Convert) Apply(es ...*formatters.EventMsg) []*formatters.EventMsg
func (*Convert) WithActions ¶
func (*Convert) WithLogger ¶
func (*Convert) WithTargets ¶
func (c *Convert) WithTargets(tcs map[string]*types.TargetConfig)
Click to show internal directories.
Click to hide internal directories.