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 Env
- type Grok
- type Json
- type Kv
- type Pattern
- type Reformat
- type Rename
- 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 {
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"`
Tenants []Tenant `yaml:"tenants,omitempty"`
Drop []Drop `yaml:"drop,omitempty"`
Add []Add `yaml:"add,omitempty"`
Patterns map[string]string `yaml:"patterns,omitempty"`
DisabledRules []int64 `yaml:"disabled_rules,omitempty"`
Plugins map[string]map[string]interface{} `yaml:"plugins,omitempty"`
Env Env `yaml:"-"`
}
Click to show internal directories.
Click to hide internal directories.