Documentation ¶
Index ¶
- Constants
- Variables
- func BuildValue(key string, value interface{}) (interface{}, error)
- func ToFloat32(val interface{}) (float32, error)
- func ToFloat64(val interface{}) (float64, error)
- func ToInt(val interface{}) (int, error)
- func ToInt32(val interface{}) (int32, error)
- func ToInt64(val interface{}) (int64, error)
- func ToString(val interface{}) (string, error)
- type Data
- type EvalContext
- type Field
- type Fields
- type Message
- type Option
Constants ¶
View Source
const ( EntityType = "mysql" THING_PROPERTY_TYPE_INT32 = "int32" THING_PROPERTY_TYPE_FLOAT32 = "float" THING_PROPERTY_TYPE_FLOAT64 = "double" THING_PROPERTY_TYPE_ARRAY = "array" THING_PROPERTY_TYPE_BOOL = "bool" THING_PROPERTY_TYPE_ENUM = "enum" THING_PROPERTY_TYPE_DATE = "date" THING_PROPERTY_TYPE_STRUCT = "struct" THING_PROPERTY_TYPE_STRING = "string" )
View Source
const (
MYSQL_SSQL_TLP = `INSERT INTO %s.%s (%s) VALUES (%s)`
)
Variables ¶
View Source
var ( NewJSONContext = ruleql.NewJSONContext NewMapContext = ruleql.NewMapContext )
View Source
var ( NewMessage = utils.NewMessage Execute = utils.Execute NewMessageContext = utils.NewMessageContext )
Functions ¶
func BuildValue ¶
Types ¶
type EvalContext ¶
type EvalContext struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext(key string, rawJsonStr string, baseCtx ...ruleql.Context) *EvalContext
NewContext new context from json
func (*EvalContext) Range ¶
func (this *EvalContext) Range(expr string) []*EvalContext
func (*EvalContext) Range2 ¶
func (this *EvalContext) Range2(expr string) []*EvalContext
Click to show internal directories.
Click to hide internal directories.