contractclient

package
v0.0.0-...-5c6e398 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveNodes

type ActiveNodes struct {
	NodeCount      int `json:"nodeCount,omitempty"`
	TotalNodeCount int `json:"totalNodeCount,omitempty"`
}

type DeployContractHandler

type DeployContractHandler struct {
	// contains filtered or unexported fields
}

func (DeployContractHandler) Encode

func (d DeployContractHandler) Encode() string

type GetNodeDetailsFuncHandler

type GetNodeDetailsFuncHandler struct {
	// contains filtered or unexported fields
}

func (*GetNodeDetailsFuncHandler) Decode

func (g *GetNodeDetailsFuncHandler) Decode(r string)

func (GetNodeDetailsFuncHandler) Encode

func (g GetNodeDetailsFuncHandler) Encode() string

type GetNodeDetailsParam

type GetNodeDetailsParam int

type NetworkMapContractClient

type NetworkMapContractClient struct {
	client.EthClient
	ContractParam contracthandler.ContractParam
}

func (*NetworkMapContractClient) ActiveNodesHandler

func (nms *NetworkMapContractClient) ActiveNodesHandler(w http.ResponseWriter, r *http.Request)

func (*NetworkMapContractClient) GetNodeDetails

func (nmc *NetworkMapContractClient) GetNodeDetails(i int) NodeDetails

func (*NetworkMapContractClient) GetNodeDetailsList

func (nmc *NetworkMapContractClient) GetNodeDetailsList() []NodeDetails

func (*NetworkMapContractClient) GetNodeDetailsResponseHandler

func (nms *NetworkMapContractClient) GetNodeDetailsResponseHandler(w http.ResponseWriter, r *http.Request)

func (*NetworkMapContractClient) GetNodeListResponseHandler

func (nms *NetworkMapContractClient) GetNodeListResponseHandler(w http.ResponseWriter, r *http.Request)

func (*NetworkMapContractClient) GetNodeListSelfResponseHandler

func (nms *NetworkMapContractClient) GetNodeListSelfResponseHandler(w http.ResponseWriter, r *http.Request)

func (*NetworkMapContractClient) OptionsHandler

func (nms *NetworkMapContractClient) OptionsHandler(w http.ResponseWriter, r *http.Request)

func (*NetworkMapContractClient) RegisterNode

func (nmc *NetworkMapContractClient) RegisterNode(name string, role string, publicKey string, enode string, ip string, id string) string

func (*NetworkMapContractClient) RegisterNodeRequestHandler

func (nms *NetworkMapContractClient) RegisterNodeRequestHandler(w http.ResponseWriter, r *http.Request)

func (*NetworkMapContractClient) SetContractParam

func (nmc *NetworkMapContractClient) SetContractParam(cp contracthandler.ContractParam)

func (*NetworkMapContractClient) UpdateNode

func (nmc *NetworkMapContractClient) UpdateNode(name string, role string, publicKey string, enode string, ip string, id string) string

func (*NetworkMapContractClient) UpdateNodeHandler

func (nms *NetworkMapContractClient) UpdateNodeHandler(w http.ResponseWriter, r *http.Request)

func (*NetworkMapContractClient) UpdateNodeRequestsHandler

func (nms *NetworkMapContractClient) UpdateNodeRequestsHandler(w http.ResponseWriter, r *http.Request)

type NodeDetails

type NodeDetails struct {
	Name      string `json:"nodeName,omitempty"`
	Role      string `json:"role,omitempty"`
	PublicKey string `json:"publicKey,omitempty"`
	Enode     string `json:"enode,omitempty"`
	IP        string `json:"ip,omitempty"`
	ID        string `json:"id,omitempty"`
}

type NodeDetailsSelf

type NodeDetailsSelf struct {
	Name      string `json:"nodeName,omitempty"`
	Role      string `json:"role,omitempty"`
	PublicKey string `json:"publicKey,omitempty"`
	Enode     string `json:"enode,omitempty"`
	IP        string `json:"ip,omitempty"`
	ID        string `json:"id,omitempty"`
	Self      string `json:"self,omitempty"`
	Active    string `json:"active,omitempty"`
}

type ParamTableRow

type ParamTableRow struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

func ABIParser

func ABIParser(contractAdd string, abiContent string, payload string) ([]ParamTableRow, string)

func Decode

func Decode(r string, contractAdd string) ([]ParamTableRow, string)

type RegisterUpdateNodeFuncHandler

type RegisterUpdateNodeFuncHandler struct {
	// contains filtered or unexported fields
}

func (RegisterUpdateNodeFuncHandler) Encode

type UpdateNode

type UpdateNode struct {
	NodeName string `json:"nodeName,omitempty"`
	Role     string `json:"role,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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