common

package
v1.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteTemplate

func ExecuteTemplate(tpl *template.Template, ctx map[string]interface{}) ([]byte, error)

func GetClientIP

func GetClientIP(req *http.Request) string

GetClientIP retrieves the client's IP address

func GetLabelMaps

func GetLabelMaps(indexName, keyField, valueField string, client elastic.API, keyFieldValues []string, cacheSize int) (map[string]string, error)

func GetMapStringValue

func GetMapStringValue(m util.MapStr, key string) string

func MapLabel

func MapLabel(labelName, indexName, keyField, valueField string, client elastic.API, cacheLabels map[string]string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL