Documentation ¶
Index ¶
- Constants
- func Bool(name string, argPoss ...int) router.MiddlewareFunc
- func Bytes(name string, argPoss ...int) router.MiddlewareFunc
- func Int(name string, argPoss ...int) router.MiddlewareFunc
- func Param(name string, paramType interface{}, argPoss ...int) router.MiddlewareFunc
- func StrictKnown(next router.HandlerFunc, pos ...int) router.HandlerFunc
- func String(name string, argPoss ...int) router.MiddlewareFunc
- func Strings(name string, argPoss ...int) router.MiddlewareFunc
- func Struct(name string, target interface{}, argPoss ...int) router.MiddlewareFunc
- type MiddlewareFuncMap
- type Parameter
- type Parameters
Constants ¶
View Source
const LastPosKey = `_lastPos`
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
func Bool(name string, argPoss ...int) router.MiddlewareFunc
Bool creates middleware for converting to bool chaincode method parameter
func Bytes ¶
func Bytes(name string, argPoss ...int) router.MiddlewareFunc
Bytes creates middleware for converting to []byte chaincode method parameter
func Int ¶
func Int(name string, argPoss ...int) router.MiddlewareFunc
Int creates middleware for converting to integer chaincode method parameter
func Param ¶
func Param(name string, paramType interface{}, argPoss ...int) router.MiddlewareFunc
Param create middleware function for transforming stub arg to context arg
func StrictKnown ¶
func StrictKnown(next router.HandlerFunc, pos ...int) router.HandlerFunc
StrictKnown allows passing arguments to chaincode func only if parameters are defined in router
Types ¶
type MiddlewareFuncMap ¶
type MiddlewareFuncMap map[string]router.MiddlewareFunc
MiddlewareFuncMap named list of middleware functions
func (MiddlewareFuncMap) Add ¶
func (pbag MiddlewareFuncMap) Add(name string, paramType interface{}) MiddlewareFuncMap
Add middleware function
Click to show internal directories.
Click to hide internal directories.