server

package
v0.0.0-...-9588916 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MIMEJSON = "application/json"
)

Variables

This section is empty.

Functions

func StartHttpServer

func StartHttpServer() error

func StartRpcServer

func StartRpcServer() error

Types

type HttpJsonBody

type HttpJsonBody struct {
	Method string      `json:"method"`
	Params interface{} `json:"params"`
}

type QueryBlockHashParam

type QueryBlockHashParam struct {
	QueryChainParam
	StartHeight int `json:"startHeight"`
	Count       int `json:"count"`
}

type QueryBlockParam

type QueryBlockParam struct {
	QueryChainParam
	BlockHash string `json:"blockHash"`
}

type QueryChainParam

type QueryChainParam struct {
	ChainId int `json:"chainId"`
}

type QueryTransParam

type QueryTransParam struct {
	QueryChainParam
	TransHash string `json:"transHash"`
}

Jump to

Keyboard shortcuts

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