package
0.0.0-20221007105759-dc5495358fd7
Repository: https://github.com/jamescun/wg-api.git
Documentation: pkg.go.dev

# Functions

HTTP adapts a JSON-RPC Handler to a HTTP Handler for use in HTTP(S) exchanges.
InternalError returns a JSON-RPC Internal Server error (-32603).
InvalidParams returns a JSON-RPC Invalid Params error (-32602).
InvalidRequest returns a JSON-RPC Invalid Request error (-32600).
MethodNotFound returns a JSON-RPC Method Not Found error (-32601).
ParseError returns a JSON-RPC Parse Error (-32700).
ServerError returns a JSON-RPC Server Error, which must be given a code between -32000 and -32099.

# Constants

ContentType is the MIME Type expected of clients and returned by the server.

# Structs

Error implements a top-level JSON-RPC error.
Request contains the JSON-RPC paramaters submitted by the client.

# Interfaces

Handler responds to JSON-RPC requests.
ResponseWriter marshals the JSON-RPC response to the client.

# Type aliases

HandlerFunc adapts a function into a handler.