Documentation
¶
Index ¶
Constants ¶
View Source
const ( // RemoteAddrKey is the key for the remote address. RemoteAddrKey = "remote-addr" // LocalAddrKey is the key for the local address. LocalAddrKey = "local-addr" )
Variables ¶
View Source
var ( ErrServerActive = errors.New("server is already active") ErrServerListenerActive = errors.New("server listener is still active - close listener first") )
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server
DRPC server that handles multiplexed streams
func NewWithOptions ¶
func NewWithOptions(handler drpc.Handler, opts drpcserver.Options) *Server
NewWithOptions
Same as New but passes options to DRPC
func (*Server) Close ¶
Close
Closes the server waiting for all inflight requests to complete. If Serve has been called, the listener that called server should be closed before this function is called.
Click to show internal directories.
Click to hide internal directories.