Documentation ¶
Index ¶
- Constants
- func GetAddressTxList(cmd map[string]interface{}) map[string]interface{}
- func GetCrossTx(cmd map[string]interface{}) map[string]interface{}
- func GetCrossTxList(cmd map[string]interface{}) map[string]interface{}
- func GetExplorerInfo(cmd map[string]interface{}) map[string]interface{}
- func GetLatestValidator(cmd map[string]interface{}) map[string]interface{}
- func GetTokenTxList(cmd map[string]interface{}) map[string]interface{}
- func InitInterface()
- func ResponsePack(code int64) map[string]interface{}
- func StartMonitorService(context *ctx.Context)
- func StopService()
- type Action
- type RestServer
- 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 (this *Router) Try(path string, method string) (http.HandlerFunc, paramsMap, error)
Constants ¶
View Source
const ( GET_EXPLORER_INFO = "/api/v1/getexplorerinfo" GET_CROSSTX = "/api/v1/getcrosstx" GET_CROSSTX_LIST = "/api/v1/getcrosstxlist" GET_TOKENTX_LIST = "/api/v1/gettokentxlist" GET_ADDRESSTX_LIST = "/api/v1/getaddresstxlist" GET_LATEST_VALIDATOR = "/api/v1/getlatestvalidator" )
View Source
const MAX_REQUEST_BODY_SIZE = 1 << 20
View Source
const TLS_PORT int = 443
Variables ¶
This section is empty.
Functions ¶
func GetAddressTxList ¶
func GetCrossTx ¶
func GetCrossTxList ¶
func GetExplorerInfo ¶
func GetLatestValidator ¶
func GetTokenTxList ¶
func InitInterface ¶
func InitInterface()
func ResponsePack ¶
func StartMonitorService ¶
func StopService ¶
func StopService()
Types ¶
type RestServer ¶
type RestServer struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.