middleware

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: LGPL-3.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 BatchCallRpcHandler

type BatchCallRpcHandler interface {
	Handle(ctx context.Context, b []rpc.BatchElem) error
}

BatchCallRpcHandler represents interface of batch call rpc handler

func BatchCallRpcConsoleMiddleware

func BatchCallRpcConsoleMiddleware(ctx context.Context, handler BatchCallRpcHandler) BatchCallRpcHandler

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

type BatchCallRpcHandlerFunc

type BatchCallRpcHandlerFunc providers.BatchCallContextFunc

func (BatchCallRpcHandlerFunc) Handle

type BatchCallRpcMiddleware

type BatchCallRpcMiddleware func(BatchCallRpcHandler) BatchCallRpcHandler

BatchCallRpcMiddleware represents the middleware for batch call rpc

type CallRpcHandler

type CallRpcHandler interface {
	Handle(ctx context.Context, 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 providers.CallContextFunc

func (CallRpcHandlerFunc) Handle

func (c CallRpcHandlerFunc) Handle(ctx context.Context, 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