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 GetMainIP() (string, *logger.Error)
- func GetValueOf(value gjson.Result) interface{}
- func ListFiles(route string, filter string) []string
- func Logger() *logger.Logger
- func NewLogger(level int) *logger.Logger
- func ReadJSON[t any](f string) (*t, *logger.Error)
- func ReadYAML[t any](f string) (*t, *logger.Error)
- type Asset
- type Cast
- type Config
- type Delete
- type Env
- type Grok
- type Pattern
- type Reformat
- type Rename
- type Tenant
- type Trim
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 GetValueOf ¶
Types ¶
type Config ¶
type Config struct { Groks []Grok `yaml:"groks,omitempty"` Trims []Trim `yaml:"trims,omitempty"` Renames []Rename `yaml:"renames,omitempty"` Casts []Cast `yaml:"casts,omitempty"` Reformats []Reformat `yaml:"reformats,omitempty"` Deletes []Delete `yaml:"deletes,omitempty"` Tenants []Tenant `yaml:"tenants,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.