insight

package
v0.0.0-...-3a83d18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSONRPCParserError    = -32700
	JSONRPCInvalidRequest = -32600
	JSONRPCMethodNotFound = -32601
	JSONRPCInvalidParams  = -32602
	JSONRPCInnerError     = -32603
)

Errors .

View Source
const (
	GasAssert = "0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7"
	NEOAssert = "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b"
)

Asserts .

Variables

This section is empty.

Functions

func OpenLogger

func OpenLogger()

OpenLogger .

Types

type JSONRPCError

type JSONRPCError struct {
	ID      int
	Message string
}

JSONRPCError .

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server insight api jsonrpc 2.0 server

func NewServer

func NewServer(cnf *config.Config) (*Server, error)

NewServer create new server

func (*Server) DipsatchJSONRPC

func (server *Server) DipsatchJSONRPC(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

DipsatchJSONRPC .

func (*Server) ReverseProxy

func (server *Server) ReverseProxy(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

ReverseProxy reverse proxy handler

func (*Server) Run

func (server *Server) Run()

Run insight server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址