Documentation ¶
Index ¶
- Variables
- func And(data []bool) bool
- func Not(data bool) bool
- func Or(data []bool) bool
- func OutAnd(data bool) bool
- type AdvertTag
- type DnfMap
- type FirstLevel
- func (f *FirstLevel) CondInit() (err error)
- func (f *FirstLevel) Init() (err error)
- func (f *FirstLevel) MarshalJSON() ([]byte, error)
- func (f *FirstLevel) Match(values map[string]string) (result bool, err error)
- func (f *FirstLevel) Parse(dnf string) (err error)
- func (f *FirstLevel) SetFuncIn() (err error)
- func (f *FirstLevel) SetFuncOut() (err error)
- func (f *FirstLevel) Unmarshal(data []byte) error
- type T
- type TagInfo
- func (t *TagInfo) Float64ArrMatch(value string) (result bool, err error)
- func (t *TagInfo) Float64Match(value string) (result bool, err error)
- func (t *TagInfo) Init() (err error)
- func (t *TagInfo) Int64ArrMatch(value string) (result bool, err error)
- func (t *TagInfo) Int64Match(value string) (result bool, err error)
- func (t *TagInfo) IntArrMatch(value string) (result bool, err error)
- func (t *TagInfo) IntMatch(value string) (result bool, err error)
- func (t *TagInfo) MarshalJSON() ([]byte, error)
- func (t *TagInfo) Parse(dnf string) (err error)
- func (t *TagInfo) SetFunRelation() (err error)
- func (t *TagInfo) SetMatchFun() (err error)
- func (t *TagInfo) SetValueType()
- func (t *TagInfo) StringArrMatch(value string) (result bool, err error)
- func (t *TagInfo) StringMatch(value string) (result bool, err error)
- func (t *TagInfo) TimeMatch(value string) (result bool, err error)
- func (t *TagInfo) UnmarshalJSON(data []byte) error
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var TypeArr = []string{
"int",
"float64",
"int64",
"string",
"time",
"[]int",
"[]float64",
"[]string",
"[]int64",
"[]mixed",
}
View Source
var TypeMap = map[string]int{}
Functions ¶
Types ¶
type AdvertTag ¶
type AdvertTag struct { Id string `json:"id"` Dnf string `json:"dnf"` AdTag []FirstLevel `json:"ad_tag"` TagsMap map[string]string `json:"tags_map"` TagCount int `json:"tag_count"` IsInit bool `json:"is_init"` sync.RWMutex DoOnceSameTime src.DoOnce `json:"-"` MatchResult bool `json:"match_result"` }
func (*AdvertTag) MarshalJSON ¶
type FirstLevel ¶
type FirstLevel struct { Cond []*TagInfo `json:"cond"` In string `json:"in"` Out string `json:"out"` TypeReflect string `json:"type_reflect"` ResultIn bool `json:"result_in"` ResultOut bool `json:"result_out"` Dnf string `json:"dnf"` FuncIn func(data []bool) bool FuncOut func(data bool) bool TagsMap map[string]string `json:"tags_map"` }
func (*FirstLevel) CondInit ¶
func (f *FirstLevel) CondInit() (err error)
func (*FirstLevel) Init ¶
func (f *FirstLevel) Init() (err error)
func (*FirstLevel) MarshalJSON ¶
func (f *FirstLevel) MarshalJSON() ([]byte, error)
func (*FirstLevel) Match ¶
func (f *FirstLevel) Match(values map[string]string) (result bool, err error)
func (*FirstLevel) Parse ¶
func (f *FirstLevel) Parse(dnf string) (err error)
[(exp_first_attend_status∈{0.000000,1.000000}|4)∧(exp_attend_num={1}|2)]
func (*FirstLevel) SetFuncIn ¶
func (f *FirstLevel) SetFuncIn() (err error)
func (*FirstLevel) SetFuncOut ¶
func (f *FirstLevel) SetFuncOut() (err error)
func (*FirstLevel) Unmarshal ¶
func (f *FirstLevel) Unmarshal(data []byte) error
type TagInfo ¶
type TagInfo struct { Id string `json:"id"` Symbol string `json:"symbol"` Value Value `json:"value"` TagType int `json:"tag_type"` Match func(str string) (result bool, err error) TypeReflect string `json:"type_reflect"` Dnf string `json:"dnf"` Relation string `json:"relation"` RelationFun func(bool2 bool) bool Result bool `json:"result"` }
数据类型 big_float, float :浮点型 num:整型 string, time:字符串
func (*TagInfo) Float64ArrMatch ¶
func (*TagInfo) Float64Match ¶
func (*TagInfo) Int64ArrMatch ¶
func (*TagInfo) MarshalJSON ¶
func (*TagInfo) SetFunRelation ¶
func (*TagInfo) SetMatchFun ¶
func (*TagInfo) SetValueType ¶
func (t *TagInfo) SetValueType()
func (*TagInfo) StringArrMatch ¶
func (*TagInfo) UnmarshalJSON ¶
type Value ¶
type Value struct { Type string `json:"type"` Origin string `json:"origin"` Float64 float64 `json:"float_64"` Int int `json:"int"` Int64 int64 `json:"int64"` String string `json:"string"` Time time.Time `json:"time"` TagValue []string `json:"tag_value"` Float64Arr map[float64]string `json:"-"` IntArr map[int]string `json:"int_arr"` Int64Arr map[int64]string `json:"int64_arr"` StringArr map[string]string `json:"string_arr"` InputValue interface{} `json:"input_value"` }
func (*Value) MarshalJSON ¶
func (*Value) ParseValue ¶
func (*Value) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.