Documentation ¶
Overview ¶
Package funcs for pipeline
Index ¶
- Constants
- Variables
- func AddKey(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func AddPattern(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func AddPatternChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func AddkeyChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func Cast(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func CastChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func DateFormatHandle(data interface{}, precision string, fmts string) (string, error)
- func DateTime(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func DateTimeChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func DefaultTime(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func DefaultTimeChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func Dropkey(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func DropkeyChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func Exit(ctx *runtime.Task, node *ast.CallExpr) *errchain.PlError
- func ExitChecking(ctx *runtime.Task, node *ast.CallExpr) *errchain.PlError
- func Getkey(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func GetkeyChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func Grok(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func GrokChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func GroupHandle(value interface{}, start, end float64) bool
- func GroupInHandle(value interface{}, set []interface{}) bool
- func InitLog(logger *zap.SugaredLogger)
- func JSONParse(jsonStr string) map[string]interface{}
- func Len(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func LenChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func LoadJSON(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func LoadJSONChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func Printf(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func PrintfChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func Rename(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func RenameChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func Replace(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func ReplaceChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func SQLCover(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func SQLCoverChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func SetMeasurement(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func SetMeasurementChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func SetTag(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func SetTagChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func Strfmt(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func StrfmtChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func TimestampHandle(value, tz string) (int64, error)
- func Trim(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func TrimChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func URLDecode(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func URLDecodeChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func Uppercase(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func UppercaseChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func UrldecodeHandle(path string) (string, error)
- func Use(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func UseChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func UserAgentHandle(str string) (map[string]interface{}, map[string]ast.DType)
- func XML(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
- func XMLChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError
Constants ¶
View Source
const ( InvalidInt = math.MinInt32 DefaultInt = int64(0xdeadbeef) DefaultStr = "" InvalidStr = "deadbeaf" InvalidFloat = math.SmallestNonzeroFloat64 DefaultFloat = float64(0.0) )
Variables ¶
View Source
var FuncsCheckMap = map[string]runtime.FuncCheck{ "grok": GrokChecking, "add_key": AddkeyChecking, "add_pattern": AddPatternChecking, "cast": CastChecking, "datetime": DateTimeChecking, "default_time": DefaultTimeChecking, "drop_key": DropkeyChecking, "exit": ExitChecking, "get_key": GetkeyChecking, "len": LenChecking, "load_json": LoadJSONChecking, "rename": RenameChecking, "set_measurement": SetMeasurementChecking, "set_tag": SetTagChecking, "strfmt": StrfmtChecking, "trim": TrimChecking, "uppercase": UppercaseChecking, "use": UseChecking, "url_decode": URLDecodeChecking, "printf": PrintfChecking, "replace": ReplaceChecking, "sql_cover": SQLCoverChecking, "xml": XMLChecking, }
View Source
var FuncsMap = map[string]runtime.FuncCall{ "grok": Grok, "add_key": AddKey, "add_pattern": AddPattern, "cast": Cast, "datetime": DateTime, "default_time": DefaultTime, "drop_key": Dropkey, "exit": Exit, "get_key": Getkey, "len": Len, "load_json": LoadJSON, "rename": Rename, "set_tag": SetTag, "set_measurement": SetMeasurement, "strfmt": Strfmt, "trim": Trim, "uppercase": Uppercase, "use": Use, "url_decode": URLDecode, "printf": Printf, "replace": Replace, "xml": XML, "sql_cover": SQLCover, }
Functions ¶
func AddPatternChecking ¶
func AddkeyChecking ¶
func DateFormatHandle ¶
func DateTimeChecking ¶
func DefaultTimeChecking ¶
func DropkeyChecking ¶
func GetkeyChecking ¶
func GroupHandle ¶
func GroupInHandle ¶
func GroupInHandle(value interface{}, set []interface{}) bool
func InitLog ¶
func InitLog(logger *zap.SugaredLogger)
func LoadJSONChecking ¶
func PrintfChecking ¶
func RenameChecking ¶
func ReplaceChecking ¶
func SQLCoverChecking ¶
func SetMeasurement ¶
func SetMeasurementChecking ¶
func SetTagChecking ¶
func StrfmtChecking ¶
func TimestampHandle ¶
func URLDecodeChecking ¶
func UppercaseChecking ¶
func UrldecodeHandle ¶
func UserAgentHandle ¶
Types ¶
This section is empty.
Source Files ¶
- all.go
- fn_addkey.go
- fn_addpattern.go
- fn_cast.go
- fn_datetime.go
- fn_default_time.go
- fn_dropkey.go
- fn_exit.go
- fn_getkey.go
- fn_grok.go
- fn_len.go
- fn_load_json.go
- fn_printf.go
- fn_rename.go
- fn_replace.go
- fn_set_measurement.go
- fn_set_tag.go
- fn_sql_cover.go
- fn_strfmt.go
- fn_trim.go
- fn_uppercase.go
- fn_urldecode.go
- fn_use.go
- fn_xml.go
- handle.go
- utils.go
Click to show internal directories.
Click to hide internal directories.