letheql

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

package promql

Index

Constants

This section is empty.

Variables

View Source
var AtModifierUnsafeFunctions = map[string]struct{}{

	"days_in_month": {}, "day_of_month": {}, "day_of_week": {}, "day_of_year": {},
	"hour": {}, "minute": {}, "month": {}, "year": {},
	"predict_linear": {}, "time": {},

	"timestamp": {},
}

Functions

This section is empty.

Types

type Engine added in v0.2.0

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine added in v0.2.0

func NewEngine(cfg *config.Config, logService *logservice.LogService) *Engine

func (*Engine) NewRangeQuery added in v0.2.0

func (ng *Engine) NewRangeQuery(qs string, start, end time.Time) (Query, error)

type Query added in v0.2.0

type Query interface {
	Cancel()
	Exec(ctx context.Context) *Result
	Statement() parser.Statement
	String() string
}

type Result added in v0.2.0

type Result struct {
	Err      error
	Value    parser.Value
	Warnings model.Warnings
}

Result holds the resulting value of an execution or an error if any occurred.

func (*Result) String added in v0.2.0

func (r *Result) String() string

type String added in v0.2.0

type String struct {
	T int64
	V string
}

String represents a string value.

func (String) String added in v0.2.0

func (s String) String() string

func (String) Type added in v0.2.0

func (String) Type() parser.ValueType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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