queryexpr

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeywordIdentifiers = [...]string{"service"}

Functions

func GetIdentifiersMap

func GetIdentifiersMap(queryExpr string) (map[string]string, error)

func ValidateAndGetQueryFromExpr

func ValidateAndGetQueryFromExpr(exprStr ExprStr) (string, error)

Types

type ESExpr

type ESExpr string

func (ESExpr) String

func (e ESExpr) String() string

func (ESExpr) ToQuery

func (e ESExpr) ToQuery() (string, error)

ToQuery default: convert to be Elasticsearch query

func (ESExpr) Validate

func (ESExpr) Validate() error

Validate default: no validation

type ExprStr

type ExprStr interface {
	String() string
	ToQuery() (string, error)
	Validate() error
}

type SQLExpr

type SQLExpr string

func (SQLExpr) String

func (s SQLExpr) String() string

func (SQLExpr) ToQuery

func (s SQLExpr) ToQuery() (string, error)

ToQuery default: convert to be SQL query

func (SQLExpr) Validate

func (SQLExpr) Validate() error

Validate default: no validation

Jump to

Keyboard shortcuts

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