Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnabledFlagSelf = 1 << iota EnabledFlagSearch EnabledFlagTimeSeries )
View Source
const ( PropertyTypeInt = "int" PropertyTypeBool = "bool" PropertyTypeFloat = "float" PropertyTypeDouble = "double" PropertyTypeString = "string" PropertyTypeArray = "array" PropertyTypeStruct = "struct" DefineFieldArrayLength = "length" DefineFieldArrayElemCfg = "elem_type" DefineFieldStructFields = "fields" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BitBucket ¶
type BitBucket struct {
// contains filtered or unexported fields
}
func NewBitBucket ¶
type Config ¶
type Config struct {
ID string `json:"id" mapstructure:"id"`
Type string `json:"type" mapstructure:"type"`
Name string `json:"name" mapstructure:"name"`
Weight int `json:"weight" mapstructure:"weight"`
Enabled bool `json:"enabled" mapstructure:"enabled"`
EnabledSearch bool `json:"enabled_search" mapstructure:"enabled_search"`
EnabledTimeSeries bool `json:"enabled_time_series" mapstructure:"enabled_time_series"`
Description string `json:"description" mapstructure:"description"`
Define map[string]interface{} `json:"define" mapstructure:"define"`
LastTime int64 `json:"last_time" mapstructure:"last_time"`
}
func ParseConfigFrom ¶ added in v0.4.1
func (*Config) AppendField ¶ added in v0.3.0
func (*Config) RemoveField ¶ added in v0.3.0
type Constraint ¶
type Constraint struct {
ID string
Type string
Operators []Operator
ChildNodes []*Constraint
EnableFlag *BitBucket
}
func NewConstraintsFrom ¶
func NewConstraintsFrom(cfg Config) *Constraint
func (*Constraint) GenEnabledIndexes ¶ added in v0.3.0
func (ct *Constraint) GenEnabledIndexes(enabledFlag int) []string
type DefineArray ¶
type DefineStruct ¶
Click to show internal directories.
Click to hide internal directories.