Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func DefaultConfig ¶
func DefaultConfig() Config
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) RegisterEndpoints ¶
type NamespacedDataResponse ¶
NamespacedDataResponse represents the response to a DataByNamespace request.
type NamespacedSharesResponse ¶
type NamespacedSharesResponse struct {}
NamespacedSharesResponse represents the response to a SharesByNamespace request.
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) ListenAddr ¶
ListenAddr returns the listen address of the server.
func (*Server) RegisterHandlerFunc ¶
func (s *Server) RegisterHandlerFunc(pattern string, handlerFunc http.HandlerFunc, method string)
RegisterHandlerFunc registers the given http.HandlerFunc 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.