Documentation ¶
Index ¶
- Constants
- type Entry
- type ParamValue
- type Query
- type QueryParam
- func (p *QueryParam) GetValueItem() string
- func (p *QueryParam) GetValueList() []string
- func (p *QueryParam) IsIn() bool
- func (p *QueryParam) IsLike() bool
- func (p *QueryParam) IsList() bool
- func (p *QueryParam) IsLtGt() bool
- func (p *QueryParam) IsNotIn() bool
- func (p *QueryParam) IsOperator(operator string) bool
- func (p *QueryParam) IsTypeJSON() bool
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 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
Click to show internal directories.
Click to hide internal directories.