Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ListenAddr string
}
func DefaultConfig ¶
func DefaultConfig() Config
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents an RPC server on the Node. TODO @renaynay: eventually, rpc server should be able to be toggled on and off.
func (*Server) RegisterHandler ¶
RegisterHandler registers the given handler on the Server's multiplexer on the given pattern.
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP serves inbound requests on the Server.
Click to show internal directories.
Click to hide internal directories.