middleware

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchCallRpcHandler

type BatchCallRpcHandler interface {
	Handle(b []rpc.BatchElem) error
}

BatchCallRpcHandler represents interface of batch call rpc handler

func BatchCallRpcConsoleMiddleware

func BatchCallRpcConsoleMiddleware(handler BatchCallRpcHandler) BatchCallRpcHandler

BatchCallRpcConsoleMiddleware is the middleware for console request and response when batch call rpc

type BatchCallRpcHandlerFunc

type BatchCallRpcHandlerFunc func(b []rpc.BatchElem) error

func (BatchCallRpcHandlerFunc) Handle

func (brh BatchCallRpcHandlerFunc) Handle(b []rpc.BatchElem) error

type BatchCallRpcMiddleware

type BatchCallRpcMiddleware func(BatchCallRpcHandler) BatchCallRpcHandler

BatchCallRpcMiddleware represents the middleware for batch call rpc

type CallRpcHandler

type CallRpcHandler interface {
	Handle(result interface{}, method string, args ...interface{}) error
}

CallRpcHandler represents interface of call rpc handler

func CallRpcConsoleMiddleware

func CallRpcConsoleMiddleware(handler CallRpcHandler) CallRpcHandler

CallRpcConsoleMiddleware is the middleware for console request and response when call rpc

type CallRpcHandlerFunc

type CallRpcHandlerFunc func(result interface{}, method string, args ...interface{}) error

func (CallRpcHandlerFunc) Handle

func (c CallRpcHandlerFunc) Handle(result interface{}, method string, args ...interface{}) error

type CallRpcMiddleware

type CallRpcMiddleware func(CallRpcHandler) CallRpcHandler

CallRpcMiddleware represents the middleware for call rpc

Jump to

Keyboard shortcuts

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