Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { StatusCode int `json:"statusCode"` Data interface{} `json:"data"` Error *Error `json:"error"` }
func ResponseBadRequest ¶
func ResponseNotFound ¶
func ResponseOk ¶
func ResponseOk(data interface{}) *Response
func ResponseServerError ¶
type Server ¶
type Server struct { ServerConfig // contains filtered or unexported fields }
func NewServer ¶
func NewServer(cfg ServerConfig, bc *core.Blockchain, txChan chan *types.Transaction, privateKey *types.PrivateKey) *Server
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.