blockchain

package
v0.0.0-...-9f1fa51 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCannedResponses

func GetCannedResponses(platform string) (cannedResponses, bool)

GetCannedResponses returns the static responses from a file, if such exists. JSON-RPC ID not set!

func SetHttpRoutes

func SetHttpRoutes(router *gin.Engine)

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) GetLogs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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