package
0.0.0-20241024022210-d31617f01746
Repository: https://github.com/maclon-lee/golanglib.git
Documentation: pkg.go.dev

# README

rpc

改造自github.com/gorilla/rpc/v2,by Maclon

support for JSON-RPC 2.0 Specification.

gorilla/rpc is a foundation for RPC over HTTP services, providing access to the exported methods of an object through HTTP requests.

Read the full documentation here: http://www.gorillatoolkit.org/pkg/rpc

# Packages

No description provided by the author

# Functions

NewServer returns a new RPC server.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

CompressionSelector generates the compressed http encoder.
RequestInfo contains all the information we pass to before/after functions.
Server serves registered RPC services using registered codecs.

# Interfaces

Codec creates a CodecRequest to process each request.
CodecRequest decodes a request and encodes a response using a specific serialization scheme.
Encoder interface contains the encoder for http response.
EncoderSelector interface provides a way to select encoder using the http request.