# Functions
AllowAllCORSOptions returns a option that allows access.
HTTPRequest2RpcxRequest converts a http request to a rpcx request.
NewContext creates a server.Context for Handler.
NewFileTransfer creates a FileTransfer with given parameters.
NewServer returns a server.
NewStreamService creates a stream service.
RegisterMakeListener registers a MakeListener for network.
WithAsyncWrite sets AsyncWrite to true.
WithCustomPool uses a custom goroutine pool.
WithPool sets goroutine pool.
WithReadTimeout sets readTimeout.
WithTCPKeepAlivePeriod sets tcp keepalive period.
WithTLSConfig sets tls.Config.
WithWriteTimeout sets writeTimeout.
# Constants
CodeInternalJSONRPCError is not currently returned but defined for completeness.
CodeInvalidjsonrpcRequest is used when the JSON sent is not a valid jsonrpcRequest object.
CodeInvalidParams should be returned by the handler when method parameter(s) were invalid.
CodeMethodNotFound should be returned by the handler when the method does not exist / is not available.
CodeParseJSONRPCError is used when invalid JSON was received by the server.
CodeUnknownJSONRPCError should be used for all non coded errors.
ReaderBuffsize is used for bufio reader.
WriterBuffsize is used for bufio writer.
# Variables
ErrServerClosed is returned by the Server's Serve, ListenAndServe after a call to Shutdown or Close.
ErrServerClosed is returned by the Server's Serve, ListenAndServe after a call to Shutdown or Close.
HttpConnContextKey is used to store http connection.
RemoteConnContextKey is a context key.
StartRequestContextKey records the start time.
StartSendRequestContextKey records the start time.
TagContextKey is used to record extra info in handling services.
# Structs
Context represents a rpcx FastCall context.
FileTransfer support transfer files from clients.
ID is a jsonrpcRequest identifier.
JSONRPCError represents a structured error in a jsonrpcRespone.
RpcServiceError represents an error that is case by service implementation.
Server is rpcx server that use TCP or UDP.
StreamService support streaming between clients and server.
VersionTag is a special 0 sized struct that encodes as the jsonrpc version tag.
# Interfaces
Plugin is the server plugin interface.
PluginContainer represents a plugin container that defines all methods to manage plugins.
Reset defines Reset method for pooled object.
# Type aliases
DownloadFileHandler handles downloading file.
FileTransferHandler handles uploading file.
MakeListener defines a listener generator.
OptionFn configures options of server.
StreamAcceptor accepts connection from clients or not.
StreamHandler handles a streaming connection with client.