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 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 PluginCfg[t any](name string) (*t, *logger.Error)
- 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 {
Grok []Grok `yaml:"grok,omitempty"`
Trim []Trim `yaml:"trim,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"`
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.