Documentation ¶
Index ¶
- Constants
- func StartServer()
- type Action
- type ApiServer
- type Params
- type Route
- type Router
- func (r *Router) Connect(path string, handler http.HandlerFunc)
- func (r *Router) Delete(path string, handler http.HandlerFunc)
- func (r *Router) Get(path string, handler http.HandlerFunc)
- func (r *Router) Head(path string, handler http.HandlerFunc)
- func (r *Router) Options(path string, handler http.HandlerFunc)
- func (r *Router) Post(path string, handler http.HandlerFunc)
- func (r *Router) Put(path string, handler http.HandlerFunc)
- func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)
- func (r *Router) Try(path string, method string) (http.HandlerFunc, Params, error)
Constants ¶
View Source
const ( Api_Getconnectioncount = "/api/v1/node/connectioncount" Api_GetNodeState = "/api/v1/node/state" Api_GetblockTxsByHeight = "/api/v1/block/transactions/height/:height" Api_Getblockbyheight = "/api/v1/block/details/height/:height" Api_Getblockbyhash = "/api/v1/block/details/hash/:hash" Api_Getblockheight = "/api/v1/block/height" Api_Getblockhash = "/api/v1/block/hash/:height" Api_Gettransaction = "/api/v1/transaction/:hash" Api_Getasset = "/api/v1/asset/:hash" Api_GetBalanceByAddr = "/api/v1/asset/balances/:addr" Api_GetBalancebyAsset = "/api/v1/asset/balance/:addr/:assetid" Api_GetUTXObyAsset = "/api/v1/asset/utxo/:addr/:assetid" Api_GetUTXObyAddr = "/api/v1/asset/utxos/:addr" Api_SendRawTransaction = "/api/v1/transaction" Api_GetTransactionPool = "/api/v1/transactionpool" Api_Restart = "/api/v1/restart" )
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
func StartServer()
Types ¶
type ApiServer ¶
type ApiServer interface { Start() Stop() }
func InitRestServer ¶
func InitRestServer() ApiServer
Click to show internal directories.
Click to hide internal directories.