Versions in this module Expand all Collapse all v1 v1.109.0 Jun 17, 2021 Changes in this version + func EvaluateAddition(left, right reflect.Value) (reflect.Value, error) + func EvaluateBitAnd(left, right reflect.Value) (reflect.Value, error) + func EvaluateBitOr(left, right reflect.Value) (reflect.Value, error) + func EvaluateDivision(left, right reflect.Value) (reflect.Value, error) + func EvaluateEqual(left, right reflect.Value) (reflect.Value, error) + func EvaluateGreaterThan(left, right reflect.Value) (reflect.Value, error) + func EvaluateGreaterThanEqual(left, right reflect.Value) (reflect.Value, error) + func EvaluateLesserThan(left, right reflect.Value) (reflect.Value, error) + func EvaluateLesserThanEqual(left, right reflect.Value) (reflect.Value, error) + func EvaluateLogicAnd(left, right reflect.Value) (reflect.Value, error) + func EvaluateLogicOr(left, right reflect.Value) (reflect.Value, error) + func EvaluateLogicSingle(left reflect.Value) (reflect.Value, error) + func EvaluateModulo(left, right reflect.Value) (reflect.Value, error) + func EvaluateMultiplication(left, right reflect.Value) (reflect.Value, error) + func EvaluateNotEqual(left, right reflect.Value) (reflect.Value, error) + func EvaluateSubtraction(left, right reflect.Value) (reflect.Value, error) + func GetAttributeInterface(obj reflect.Value, fieldName string) (interface{}, error) + func GetAttributeList(obj reflect.Value) ([]string, error) + func GetAttributeType(obj reflect.Value, fieldName string) (reflect.Type, error) + func GetAttributeValue(obj reflect.Value, fieldName string) (reflect.Value, error) + func GetBaseKind(val reflect.Value) reflect.Kind + func GetFunctionList(obj reflect.Value) ([]string, error) + func GetFunctionParameterTypes(obj reflect.Value, methodName string) ([]reflect.Type, bool, error) + func GetFunctionReturnTypes(obj reflect.Value, methodName string) ([]reflect.Type, error) + func GetMapArrayValue(mapArray, selector interface{}) (ret interface{}, err error) + func InvokeFunction(obj reflect.Value, methodName string, param []reflect.Value) (retval []reflect.Value, err error) + func IsAttributeArray(objVal reflect.Value, fieldName string) (bool, error) + func IsAttributeMap(obj reflect.Value, fieldName string) (bool, error) + func IsAttributeNilOrZero(obj reflect.Value, fieldName string) (bool, error) + func IsNumber(val reflect.Value) bool + func IsStruct(val reflect.Value) bool + func IsValidField(objVal reflect.Value, fieldName string) bool + func ParseJSONRuleset(data []byte) (rs string, err error) + func ParseRule(rule *GruleJSON) (r string, err error) + func SetAttributeInterface(obj reflect.Value, fieldName string, value interface{}) error + func SetAttributeValue(objVal reflect.Value, fieldName string, value reflect.Value) error + func SetMapArrayValue(mapArray, selector reflect.Value, newValue reflect.Value) (err error) + func ValueToInterface(v reflect.Value) interface + type BytesResource struct + Bytes []byte + func (res *BytesResource) Load() ([]byte, error) + func (res *BytesResource) String() string + type CloneRecord struct + CloneAstID string + CloneInstance interface{} + OriginAstID string + OriginInstance interface{} + type CloneTable struct + Records map[string]*CloneRecord + func NewCloneTable() *CloneTable + func (tab *CloneTable) IsCloned(astID string) bool + func (tab *CloneTable) MarkCloned(originAst, cloneAst string, origin, clone interface{}) + type FileResource struct + Bytes []byte + Path string + func (res *FileResource) Load() ([]byte, error) + func (res *FileResource) String() string + type FileResourceBundle struct + BasePath string + PathPattern []string + func NewFileResourceBundle(basePath string, pathPattern ...string) *FileResourceBundle + func (bundle *FileResourceBundle) Load() ([]Resource, error) + func (bundle *FileResourceBundle) MustLoad() []Resource + type GITResource struct + Bytes []byte + Path string + URL string + func (res *GITResource) Load() ([]byte, error) + func (res *GITResource) String() string + type GITResourceBundle struct + Password string + PathPattern []string + RefName string + Remote string + URL string + User string + func NewGITResourceBundle(url string, pathPattern ...string) *GITResourceBundle + func (bundle *GITResourceBundle) Load() ([]Resource, error) + func (bundle *GITResourceBundle) MustLoad() []Resource + type GruleErrorReporter struct + Errors []error + func (c *GruleErrorReporter) AddError(err error) + func (c *GruleErrorReporter) Error() string + func (c *GruleErrorReporter) HasError() bool + func (c *GruleErrorReporter) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, ...) + type GruleJSON struct + Description string + Name string + Salience int + Then []interface{} + When interface{} + type JSONResource struct + func (jr *JSONResource) Load() ([]byte, error) + func (jr *JSONResource) String() string + type JSONResourceBundle struct + func (jrb *JSONResourceBundle) Load() ([]Resource, error) + func (jrb *JSONResourceBundle) MustLoad() []Resource + type ReaderResource struct + Reader io.Reader + func (res *ReaderResource) Load() ([]byte, error) + func (res *ReaderResource) String() string + type ResouceBundle interface + Load func() ([]Resource, error) + MustLoad func() []Resource + func NewJSONResourceBundleFromBundle(bundle ResouceBundle) ResouceBundle + type Resource interface + Load func() ([]byte, error) + String func() string + func NewBytesResource(bytes []byte) Resource + func NewFileResource(path string) Resource + func NewJSONResourceFromResource(res Resource) Resource + func NewReaderResource(reader io.Reader) Resource + func NewURLResource(url string) Resource + type URLResource struct + Bytes []byte + URL string + func (res *URLResource) Load() ([]byte, error) + func (res *URLResource) String() string