# Functions
AssertInputType makes sure input's type conform to the spec: reflect.TypeOf(input) == spec.InputType().
AssertOutputType makes sure output's type conform to the spec: reflect.TypeOf(output) == spec.OutputType().
MustRawDataRPCSpec is must-version of NewRawDataSpec.
MustRPCSpec is must-version of NewRPCSpec.
NewRawDataRPCSpec validates and creates a RPCSpec which use *rawenc.RawData as input/output.
NewRPCClientWithMWs creates a new RPCClientWithMWs.
NewRPCServerWithMWs creates a new RPCServerWithMWs.
NewRPCSpec validates and creates a new RPCSpec.
RPCErrorf creates an new RPCError.
# Constants
Pre-defined rpc error codes.
Pre-defined rpc error codes.
Pre-defined rpc error codes.
Pre-defined rpc error codes.
Pre-defined rpc error codes.
Pre-defined rpc error codes.
Pre-defined rpc error codes.
# Variables
MethodNameRegexp is method name's format.
SvcNameRegexp is service name's format.
# Structs
RPCClientWithMWs wraps an RPCClient with RPCMiddlewares.
RPCError should be handled properly by all rpc implementations.
RPCServerWithMWs wraps an RPCServer with RPCMiddlewares.
# Type aliases
RPCClientFunc is an adapter to allow the use of ordinary functions as RPCClient.
RPCErrorCode describes the reason of rpc error.
RPCHandler do the real job.
RPCMiddleware wraps a RPCHandler into another one.
RPCServerFunc is an adapter to allow the use of ordinary functions as RPCServer.