Documentation ¶
Overview ¶
Local RPC package.
This is a simple RPC package that uses a line-oriented protocol for encoding and decoding, and Unix sockets for transport. It is meant to be used for lightweight occasional communication between processes on the same machine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultServer = NewServer()
Default server. This is a singleton server that can be used for convenience.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for the localrpc server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the RPC server.
func (*Server) ListenAndServe ¶
ListenAndServe starts the server.
Click to show internal directories.
Click to hide internal directories.