util

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GraphVisType data.VisType = "graph"
	TableVisType data.VisType = "table"
	LogsVisType  data.VisType = "logs"
)

Variables

This section is empty.

Functions

func BuildFrameNameFromQuery

func BuildFrameNameFromQuery(rowName, column string, tags map[string]string, frameName []byte, resultFormat string) []byte

func FormatFrameName

func FormatFrameName(rowName, column string, tags map[string]string, query models.Query, frameName []byte) []byte

func GetVisType

func GetVisType(resFormat string) data.VisType

func ParseNumber

func ParseNumber(value any) *float64

func ParseString

func ParseString(value any) *string

func ParseTimestamp

func ParseTimestamp(value any) (time.Time, error)

func ToPtr

func ToPtr[T any](v T) *T

func Typeof

func Typeof(values [][]any, colIndex int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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