domain

package
v0.7.3-0...-afa7ed7 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeKey    = "key"
	TypeColumn = "column"
)
View Source
const (
	OperatorLt      = "<"
	OperatorLte     = "<="
	OperatorGt      = ">"
	OperatorGte     = ">="
	OperatorEq      = "="
	OperatorNotEq   = "!="
	OperatorIn      = "IN"
	OperatorNotIn   = "NOT IN"
	OperatorLike    = "LIKE"
	OperatorNotLike = "NOT LIKE"
)
View Source
const (
	SuggestLevel     = "level"
	SuggestHost      = "host"
	SuggestSource    = "source"
	SuggestNamespace = "namespace"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Time        time.Time       `json:"time"`
	NSec        int64           `json:"nsec,string"`
	Namespace   string          `json:"namespace"`
	Source      string          `json:"source"`
	Host        string          `json:"host"`
	Level       string          `json:"level"`
	TraceID     string          `json:"trace_id"`
	Message     string          `json:"message"`
	RemoteIP    string          `json:"remote_ip"`
	Params      json.RawMessage `json:"params"`
	BuildCommit string          `json:"build_commit"`
	ConfigHash  string          `json:"config_hash"`
}

type ParamValue

type ParamValue struct {
	Item string
	List []string
}

type Query

type Query struct {
	Params []*QueryParam
	Limit  int64
	Offset int64
}

type QueryParam

type QueryParam struct {
	Type     string
	Key      string
	Value    ParamValue
	Operator string
}

func (*QueryParam) GetValueItem

func (p *QueryParam) GetValueItem() string

func (*QueryParam) GetValueList

func (p *QueryParam) GetValueList() []string

func (*QueryParam) IsIn

func (p *QueryParam) IsIn() bool

func (*QueryParam) IsLike

func (p *QueryParam) IsLike() bool

func (*QueryParam) IsList

func (p *QueryParam) IsList() bool

func (*QueryParam) IsLtGt

func (p *QueryParam) IsLtGt() bool

func (*QueryParam) IsNotIn

func (p *QueryParam) IsNotIn() bool

func (*QueryParam) IsOperator

func (p *QueryParam) IsOperator(operator string) bool

func (*QueryParam) IsTypeJSON

func (p *QueryParam) IsTypeJSON() bool

Jump to

Keyboard shortcuts

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