Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapToTable ¶
MapToTable convert map[strign]interface{} into lua table Adopted from here https://github.com/yuin/gopher-lua/issues/160
Types ¶
type CELValidator ¶
type CELValidator struct { *Validator // contains filtered or unexported fields }
func NewCELValidator ¶
func NewCELValidator(c *config.ValidatorConfig) (*CELValidator, error)
type L4ValidatorExtra ¶
type LuaValidator ¶
type LuaValidator struct {
// contains filtered or unexported fields
}
func NewLuaValidator ¶
func NewLuaValidator(vc *config.ValidatorConfig) (*LuaValidator, error)
func (*LuaValidator) IsMajor ¶
func (v *LuaValidator) IsMajor() bool
func (*LuaValidator) Name ¶
func (v *LuaValidator) Name() string
func (*LuaValidator) Title ¶
func (v *LuaValidator) Title() string
type ScriptValidator ¶
type ScriptValidator struct {
// contains filtered or unexported fields
}
func NewScriptValidator ¶
func NewScriptValidator(c *config.ValidatorConfig) (*ScriptValidator, error)
func (*ScriptValidator) Exec ¶
func (v *ScriptValidator) Exec(data map[string]interface{}) (bool, error)
func (*ScriptValidator) IsMajor ¶
func (v *ScriptValidator) IsMajor() bool
func (*ScriptValidator) Name ¶
func (v *ScriptValidator) Name() string
func (*ScriptValidator) Title ¶
func (v *ScriptValidator) Title() string
type TCPValidator ¶
type TCPValidator struct { *Validator // contains filtered or unexported fields }
type UDPValidator ¶
type UDPValidator struct { *Validator // contains filtered or unexported fields }
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidatorBase ¶
func NewValidatorBase(c *config.ValidatorConfig) *Validator
type ValidatorInterface ¶
type ValidatorInterface interface { Exec(data map[string]interface{}) (bool, error) Title() string Name() string IsMajor() bool }
func NewL4Validator ¶
func NewL4Validator(c *config.ValidatorConfig) (ValidatorInterface, error)
func NewValidator ¶
func NewValidator(c *config.ValidatorConfig) (ValidatorInterface, error)
Click to show internal directories.
Click to hide internal directories.