Documentation ¶
Index ¶
- Constants
- type Map
- func (d Map) Get(key ...string) (any, bool)
- func (d Map) GetNumber(key ...string) (float64, bool)
- func (d Map) GetString(key ...string) (string, bool)
- func (d Map) GetTimestamp(key ...string) (time.Time, bool, error)
- func (d Map) Keywords() ([]string, bool)
- func (d Map) Select(key string) (any, bool)
- func (d Map) Set(value any, key ...string) error
- type SafeMap
- func (d *SafeMap) Get(key ...string) (any, bool)
- func (d *SafeMap) GetNumber(key ...string) (float64, bool)
- func (d *SafeMap) GetString(key ...string) (string, bool)
- func (d *SafeMap) GetTimestamp(key ...string) (time.Time, bool, error)
- func (d *SafeMap) Raw() Map
- func (d *SafeMap) Set(value any, key ...string) error
Constants ¶
View Source
const ArgTimeFormat = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
Map is a nested map with helper methods for recursive lookups
func (Map) Get ¶
Get is a helper for doing recursive lookups into nested maps (nested JSON). Key argument is a slice of strings
func (Map) Keywords ¶
Keywords implements keyword interface for sigma rule engine. For now it's a stub.
type SafeMap ¶ added in v0.1.0
func NewSafeMap ¶ added in v0.1.0
func (*SafeMap) Get ¶ added in v0.1.0
Get is a helper for doing recursive lookups into nested maps (nested JSON). Key argument is a slice of strings
func (*SafeMap) GetNumber ¶ added in v0.1.0
GetNumber retrieves JSON numeric value which are by spec floating points
func (*SafeMap) GetTimestamp ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.