Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server interface { // Start starts the server. Start() error // Stop stops the server. Stop() // AddHandler adds a handler. AddHandler(method byte, handler func(data []byte) ([]byte, error)) Server }
Server is the interface for the RPC Server.
type ServerImplV1 ¶
type ServerImplV1 struct {
// contains filtered or unexported fields
}
ServerImplV1 implements the Server interface.
func (*ServerImplV1) AddHandler ¶
AddHandler adds a handler.
func (*ServerImplV1) ServeHTTP ¶
func (s *ServerImplV1) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP handles the api calls.
Click to show internal directories.
Click to hide internal directories.