jsonrpc

package
v0.0.0-...-daa1150 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeJSONRPCHandler

func MakeJSONRPCHandler(funcMap map[string]*utils.APIFunc) http.HandlerFunc

func WriteRPCResponseHTTP

func WriteRPCResponseHTTP(w http.ResponseWriter, headers []httpHeader, res ...types.RPCResponse) error

func WriteRPCResponseHTTPError

func WriteRPCResponseHTTPError(
	w http.ResponseWriter,
	httpCode int,
	res types.RPCResponse,
) error

WriteRPCResponseHTTPError marshals res as JSON (with indent) and writes it to w.

source: https://www.jsonrpc.org/historical/json-rpc-over-http.html

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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