Documentation
¶
Index ¶
- func CastBool(value interface{}) bool
- func CastFloat64(value interface{}) float64
- func CastInt64(value interface{}) int64
- func CastString(value interface{}) string
- func DoReq[response any](url string, data []byte, method string, headers map[string]string) (response, int, *logger.Error)
- func Download(url, file string) *logger.Error
- func GetCelType(t string) *cel.Type
- func GetMainIP() (string, *logger.Error)
- func GetValueOf(value gjson.Result) interface{}
- func ListFiles(route string, filter string) []string
- func Logger() *logger.Logger
- func PluginCfg[t any](name string) (*t, *logger.Error)
- func ReadCSV(url string) ([][]string, *logger.Error)
- func ReadJSON[t any](f string) (*t, *logger.Error)
- func ReadYAML[t any](f string) (*t, *logger.Error)
- func ToObject(str *string, object protoreflect.ProtoMessage) *logger.Error
- func ToString(object protoreflect.ProtoMessage) (*string, *logger.Error)
- type Add
- type Asset
- type Cast
- type Config
- type Csv
- type Delete
- type Drop
- type Dynamic
- type Env
- type Grok
- type Json
- type Kv
- type Pattern
- type Pipeline
- type Reformat
- type Rename
- type Step
- type Tenant
- type Trim
- type Variable
- type Where
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CastFloat64 ¶
func CastFloat64(value interface{}) float64
func CastString ¶
func CastString(value interface{}) string
func GetCelType ¶ added in v0.6.4
func GetValueOf ¶
func ToObject ¶ added in v0.6.5
func ToObject(str *string, object protoreflect.ProtoMessage) *logger.Error
func ToString ¶ added in v0.6.5
func ToString(object protoreflect.ProtoMessage) (*string, *logger.Error)
Types ¶
type Config ¶
type Config struct {
Pipeline []Pipeline `yaml:"pipeline"`
DisabledRules []int64 `yaml:"disabled_rules,omitempty"`
Tenants []Tenant `yaml:"tenants,omitempty"`
Patterns map[string]string `yaml:"patterns,omitempty"`
Plugins map[string]map[string]interface{} `yaml:"plugins,omitempty"`
Env Env `yaml:"-"`
}
type Dynamic ¶ added in v0.8.0
type Dynamic struct {
Plugin string `yaml:"plugin"`
Args []interface{} `yaml:"args"`
}
type Step ¶ added in v0.8.0
type Step struct {
Kv *Kv `yaml:"kv,omitempty"`
Grok *Grok `yaml:"grok,omitempty"`
Trim *Trim `yaml:"trim,omitempty"`
Json *Json `yaml:"json,omitempty"`
Csv *Csv `yaml:"csv,omitempty"`
Rename *Rename `yaml:"rename,omitempty"`
Cast *Cast `yaml:"cast,omitempty"`
Reformat *Reformat `yaml:"reformat,omitempty"`
Delete *Delete `yaml:"delete,omitempty"`
Drop *Drop `yaml:"drop,omitempty"`
Add *Add `yaml:"add,omitempty"`
Dynamic *Dynamic `yaml:"dynamic,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.