Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
func StartServer(cfg *Config, bc *bcstore.ChainStorage)
Types ¶
type Context ¶
type Context struct { *Server // contains filtered or unexported fields }
func (*Context) WriteError ¶
----------------------- response -------------------------------------
type Response ¶
type Response struct { Results interface{} `json:"results,omitempty"` NextOffset string `json:"next_offset,omitempty"` Error string `json:"error,omitempty"` }
func NewResponse ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(cfg *Config, bc *bcstore.ChainStorage) *Server
Click to show internal directories.
Click to hide internal directories.