adaptor

package
v0.0.0-...-5fdd8c6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adapt

func Adapt(method string, handler Handler) (m string, h jrpc.Handler, p, r interface{})

Adapt is

Types

type Handler

type Handler interface {
	ServeJRPC(ctx context.Context, paramsPtr, resultPtr interface{}) *jrpc.Error
	NewParamsPtr() interface{}
	NewResultPtr() interface{}
}

Handler is

Jump to

Keyboard shortcuts

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