validator

package
v0.0.0-...-46454a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Messages

type Messages interface {
	Messages() map[string][]string
}

Messages interface

type RPCRequestValidationFunc

type RPCRequestValidationFunc func(r *rpc.RequestInfo, i interface{}) error

RPCRequestValidationFunc ...

func JWT

func JWT(ji jwt.Interactor) RPCRequestValidationFunc

JWT validation func

func RBAC

func RBAC(model, policy string) RPCRequestValidationFunc

RBAC validation func

func RBACCustomEnforcer

func RBACCustomEnforcer(e *casbin.Enforcer) RPCRequestValidationFunc

RBACCustomEnforcer validation func

func ValidateRequestData

func ValidateRequestData() RPCRequestValidationFunc

ValidateRequestData ...

func WrapFunc

WrapFunc is a wrapper to run chain of rpc request validation functions

type Rules

type Rules interface {
	Rules() map[string][]string
}

Rules interface

type ValidatableRequest

type ValidatableRequest interface {
	Rules
	Messages
}

ValidatableRequest interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL