Documentation ¶
Index ¶
- Constants
- Variables
- type ErrorChecking
- type InterpretableDefinition
- type Parser
- func (p Parser) Parse(definition InterpretableDefinition) (cel.Program, error)
- func (p Parser) ParseJWT(definitions []InterpretableDefinition) ([]cel.Program, error)
- func (p Parser) ParsePost(definitions []InterpretableDefinition) ([]cel.Program, error)
- func (p Parser) ParsePre(definitions []InterpretableDefinition) ([]cel.Program, error)
Constants ¶
View Source
const ( PreKey = "req" PostKey = "resp" JwtKey = "JWT" NowKey = "now" )
View Source
const Namespace = "github.com/starvn/sonic/validation/explang"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ErrorChecking ¶
type ErrorChecking struct {
// contains filtered or unexported fields
}
func (ErrorChecking) Error ¶
func (e ErrorChecking) Error() string
type InterpretableDefinition ¶
type InterpretableDefinition struct { CheckExpression string `json:"check_expr"` ModExpression string `json:"mod_expr"` }
func ConfigGetter ¶
func ConfigGetter(e config.ExtraConfig) ([]InterpretableDefinition, bool)
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func NewModExpressionParser ¶
func (Parser) Parse ¶
func (p Parser) Parse(definition InterpretableDefinition) (cel.Program, error)
func (Parser) ParseJWT ¶
func (p Parser) ParseJWT(definitions []InterpretableDefinition) ([]cel.Program, error)
Click to show internal directories.
Click to hide internal directories.