Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCannedResponses ¶
GetCannedResponses returns the static responses from a file, if such exists. JSON-RPC ID not set!
func SetHttpRoutes ¶
Types ¶
type JsonrpcMessage ¶
type JsonrpcMessage = blockchain.JsonrpcMessage
JsonrpcMessage declares JSON-RPC message type
func GetCannedResponse ¶
func GetCannedResponse(platform string, msg JsonrpcMessage) ([]JsonrpcMessage, bool)
GetCannedResponse returns the static response from a file, if such exists for the JSON-RPC method.
func HandleRequest ¶
func HandleRequest(conn, platform string, msg JsonrpcMessage) ([]JsonrpcMessage, error)
type MockIoTeXServer ¶
type MockIoTeXServer struct {
iotexapi.UnimplementedAPIServiceServer
}
func (*MockIoTeXServer) GetChainMeta ¶
func (*MockIoTeXServer) GetChainMeta(context.Context, *iotexapi.GetChainMetaRequest) (*iotexapi.GetChainMetaResponse, error)
func (*MockIoTeXServer) GetLogs ¶
func (*MockIoTeXServer) GetLogs(_ context.Context, req *iotexapi.GetLogsRequest) (*iotexapi.GetLogsResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.