Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAction(name string, f Factory)
- type Action
- type Add
- type Config
- type ConfigAction
- type Copy
- type Del
- type DropEvent
- type Factory
- type Fmt
- type FmtKey
- type FmtKeyExtra
- type Instance
- type JsonDecode
- type Move
- type Print
- type Regex
- type Return
- type Set
- type StrConvert
- type Timestamp
- type UnderRoot
Constants ¶
View Source
const ( AddName = "add" AddUsageMsg = "usage: add(key, value)" )
View Source
const ( CopyName = "copy" CopyUsageMsg = "usage: copy(from, to)" )
View Source
const ( DelName = "del" DelUsageMsg = "usage: del(key1, key2...)" )
View Source
const ( DropEventName = "dropEvent" DropEventUsageMsg = "usage: dropEvent()" )
View Source
const ( FmtName = "fmt" FmtUsageMsg = "usage: fmt(key)" )
View Source
const ( FmtKeyName = "fmtKey" FmtKeyUsageMsg = "usage: fmtKey()" )
View Source
const ( JsonDecodeName = "jsonDecode" JsonDecodeUsageMsg = "usage: jsonDecode(key) or jsonDecode(key, to)" )
View Source
const ( MoveName = "move" MoveUsageMsg = "usage: move(from, to)" )
View Source
const ( PrintName = "print" PrintUsageMsg = "usage: print()" )
View Source
const ( RegexName = "regex" RegexUsageMsg = "usage: regex(key) or regex(key, to)" )
View Source
const ( ReturnName = "return" ReturnUsageMsg = "usage: return()" )
View Source
const ( SetName = "set" SetUsageMsg = "usage: set(key, value)" )
View Source
const ( StrConvertName = "strconv" StrConvertUsageMsg = "usage: strconv(key, type)" )
View Source
const ( TimestampName = "timestamp" TimestampUsageMsg = "usage: timestamp(key)" LayoutUnix = "unix" LayoutUnixMs = "unix_ms" )
View Source
const ( UnderRootName = "underRoot" UnderRootUsageMsg = "usage: underRoot(key)" )
View Source
const (
HeaderRoot = "_root"
)
Variables ¶
View Source
var ErrorDropEvent = errors.New("DROP_EVENT")
View Source
var ErrorReturn = errors.New("RETURN")
Functions ¶
func RegisterAction ¶
Types ¶
type Config ¶
func (*Config) ToActionCfg ¶
func (c *Config) ToActionCfg() (*ConfigAction, error)
type ConfigAction ¶
type FmtKeyExtra ¶
type Instance ¶
type Instance struct { Name string Action Config ConfigAction }
type JsonDecode ¶
type JsonDecode struct {
// contains filtered or unexported fields
}
func NewJsonDecode ¶
func NewJsonDecode(args []string) (*JsonDecode, error)
type StrConvert ¶
type StrConvert struct {
// contains filtered or unexported fields
}
func NewStrConvert ¶
func NewStrConvert(args []string) (*StrConvert, error)
Click to show internal directories.
Click to hide internal directories.