Documentation ¶
Index ¶
- type ActiveNodes
- type DeployContractHandler
- type GetNodeDetailsFuncHandler
- type GetNodeDetailsParam
- type NetworkMapContractClient
- func (nms *NetworkMapContractClient) ActiveNodesHandler(w http.ResponseWriter, r *http.Request)
- func (nmc *NetworkMapContractClient) GetNodeDetails(i int) NodeDetails
- func (nmc *NetworkMapContractClient) GetNodeDetailsList() []NodeDetails
- func (nms *NetworkMapContractClient) GetNodeDetailsResponseHandler(w http.ResponseWriter, r *http.Request)
- func (nms *NetworkMapContractClient) GetNodeListResponseHandler(w http.ResponseWriter, r *http.Request)
- func (nms *NetworkMapContractClient) GetNodeListSelfResponseHandler(w http.ResponseWriter, r *http.Request)
- func (nms *NetworkMapContractClient) OptionsHandler(w http.ResponseWriter, r *http.Request)
- func (nmc *NetworkMapContractClient) RegisterNode(name string, role string, publicKey string, enode string, ip string, id string) string
- func (nms *NetworkMapContractClient) RegisterNodeRequestHandler(w http.ResponseWriter, r *http.Request)
- func (nmc *NetworkMapContractClient) SetContractParam(cp contracthandler.ContractParam)
- func (nmc *NetworkMapContractClient) UpdateNode(name string, role string, publicKey string, enode string, ip string, id string) string
- func (nms *NetworkMapContractClient) UpdateNodeHandler(w http.ResponseWriter, r *http.Request)
- func (nms *NetworkMapContractClient) UpdateNodeRequestsHandler(w http.ResponseWriter, r *http.Request)
- type NodeDetails
- type NodeDetailsSelf
- type ParamTableRow
- type RegisterUpdateNodeFuncHandler
- type UpdateNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveNodes ¶
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 (*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 (*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 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 RegisterUpdateNodeFuncHandler ¶
type RegisterUpdateNodeFuncHandler struct {
// contains filtered or unexported fields
}
func (RegisterUpdateNodeFuncHandler) Encode ¶
func (h RegisterUpdateNodeFuncHandler) Encode() string
type UpdateNode ¶
Click to show internal directories.
Click to hide internal directories.