Documentation ¶
Index ¶
- type Messages
- type RPCRequestValidationFunc
- func JWT(ji jwt.Interactor) RPCRequestValidationFunc
- func RBAC(model, policy string) RPCRequestValidationFunc
- func RBACCustomEnforcer(e *casbin.Enforcer) RPCRequestValidationFunc
- func ValidateRequestData() RPCRequestValidationFunc
- func WrapFunc(fn ...RPCRequestValidationFunc) RPCRequestValidationFunc
- type Rules
- type ValidatableRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCRequestValidationFunc ¶
type RPCRequestValidationFunc func(r *rpc.RequestInfo, i interface{}) error
RPCRequestValidationFunc ...
func RBACCustomEnforcer ¶
func RBACCustomEnforcer(e *casbin.Enforcer) RPCRequestValidationFunc
RBACCustomEnforcer validation func
func ValidateRequestData ¶
func ValidateRequestData() RPCRequestValidationFunc
ValidateRequestData ...
func WrapFunc ¶
func WrapFunc(fn ...RPCRequestValidationFunc) RPCRequestValidationFunc
WrapFunc is a wrapper to run chain of rpc request validation functions
type ValidatableRequest ¶
ValidatableRequest interface
Click to show internal directories.
Click to hide internal directories.