Documentation ¶
Overview ¶
Package jrpc implements a jsonrpc2 server
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NewServer creates a jrpc server NewServer = server.NewServer // DialContext is to dial a conn with context DialContext = codecs.DialContext // Dial is to dial a conn with context.Background() Dial = codecs.Dial // ContextWithConn will attach a conn to the context ContextWithConn = jsonrpc.ContextWithConn // ContextWithPeerInfo will attach a peerinfo to the context ContextWithPeerInfo = server.ContextWithPeerInfo // ConnFromContext will retrieve a conn from context ConnFromContext = jsonrpc.ConnFromContext // PeerInfoFromContext will retrieve a peerinfo from context PeerInfoFromContext = server.PeerInfoFromContext )
View Source
var CallInto = jsonrpc.CallInto
CallInto is the same as Call, except instead of returning, you provide a pointer to the result
Functions ¶
Types ¶
type HandlerFunc ¶
type HandlerFunc = jsonrpc.HandlerFunc
HandlerFunc is a Handler that exists as a function
type Middleware ¶ added in v0.2.22
Middleware is a middleware
type ResponseWriter ¶
type ResponseWriter = jsonrpc.ResponseWriter
ResponseWriter is used to write responses to the request
Click to show internal directories.
Click to hide internal directories.