Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server represents the JSON-RPC 2.0 server.
func New ¶
func New(chain core.Blockchainer, conf config.RPCConfig, coreServer *network.Server, log *zap.Logger) Server
New creates a new Server struct.
func (*Server) WriteErrorResponse ¶
WriteErrorResponse writes an error response to the ResponseWriter.
func (*Server) WriteResponse ¶
func (s *Server) WriteResponse(r *request.In, w http.ResponseWriter, result interface{})
WriteResponse encodes the response and writes it to the ResponseWriter.
Click to show internal directories.
Click to hide internal directories.