Documentation ¶
Index ¶
- type CoinbaseReturn
- type Monitor
- type NodeServices
- func (n *NodeServices) Calls(ips []string, uris []string) (err error)
- func (n *NodeServices) CheckPermission() (problems []Nodo)
- func (n *NodeServices) GetCoinbase(nodo Nodo) (coinbase string)
- func (n *NodeServices) GetFirstValidatorUp() (nodo Nodo, err error)
- func (n *NodeServices) GetGeneralDirectory(url string) (nodos []Nodo)
- func (n *NodeServices) GetValidatorDirectory(url string) (nodos []Nodo)
- func (n *NodeServices) IsUpAndRunning(nodo Nodo) (ok bool)
- func (n *NodeServices) ListValidators() (validators []*Nodo)
- func (n *NodeServices) ListVolunteers() (validators []*Nodo)
- func (n *NodeServices) ProposeNodes(iskey string) (ok bool)
- func (n *NodeServices) ProposeSingleNode(nodo *Nodo, address string, value bool) (ok bool)
- func (n *NodeServices) Update() (ok bool)
- func (n *NodeServices) VersionUpdate() (ok bool)
- type Nodo
- type Peer
- type PeerIstanbul
- type PeerNetwork
- type PeerProtocol
- type StatusReturn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinbaseReturn ¶
type CoinbaseReturn struct {
Data string `json: "data"`
}
type Monitor ¶
type Monitor struct { BlockNumber string `json: "blockNumber"` Candidates string `json: "candidates"` Validators string `json: "getValidators"` Mining string `json: "mining"` NetworkID string `json: "netVersion"` NodeInfo string `json: "nodeInfo"` PeerCount string `json: "peerCount"` Peers []Peer `json: "peers"` Pending string `json: "pendingTransactions` Port string `json: "port1"` RpcPort string `json: "port2"` ConstellationPort string `json: "port3"` Syncing bool `json: "syncing"` TxPool string `json: "txPool"` }
type NodeServices ¶
type NodeServices struct {
// contains filtered or unexported fields
}
func (*NodeServices) CheckPermission ¶
func (n *NodeServices) CheckPermission() (problems []Nodo)
func (*NodeServices) GetCoinbase ¶
func (n *NodeServices) GetCoinbase(nodo Nodo) (coinbase string)
func (*NodeServices) GetFirstValidatorUp ¶
func (n *NodeServices) GetFirstValidatorUp() (nodo Nodo, err error)
func (*NodeServices) GetGeneralDirectory ¶
func (n *NodeServices) GetGeneralDirectory(url string) (nodos []Nodo)
func (*NodeServices) GetValidatorDirectory ¶
func (n *NodeServices) GetValidatorDirectory(url string) (nodos []Nodo)
func (*NodeServices) IsUpAndRunning ¶
func (n *NodeServices) IsUpAndRunning(nodo Nodo) (ok bool)
func (*NodeServices) ListValidators ¶
func (n *NodeServices) ListValidators() (validators []*Nodo)
func (*NodeServices) ListVolunteers ¶
func (n *NodeServices) ListVolunteers() (validators []*Nodo)
func (*NodeServices) ProposeNodes ¶
func (n *NodeServices) ProposeNodes(iskey string) (ok bool)
func (*NodeServices) ProposeSingleNode ¶
func (n *NodeServices) ProposeSingleNode(nodo *Nodo, address string, value bool) (ok bool)
func (*NodeServices) Update ¶
func (n *NodeServices) Update() (ok bool)
func (*NodeServices) VersionUpdate ¶
func (n *NodeServices) VersionUpdate() (ok bool)
type Nodo ¶
type Nodo struct { Entidad string `json: "entidad"` Contactos []string `json: "contactos"` Enode string `json: "enode"` IP string `json: "ip"` Port string `json: "port"` PrivateFor string `json: "privateFor"` Coinbase string `json: "coinbase"` Monitor string `json: "monitor"` Peers []Peer `json: "peers"` Validators []string `json: "validators"` Incidencias string `json: "incidencias"` LastUpdate time.Time `json: "lastUpdate"` }
type Peer ¶
type Peer struct { Caps []string `json: "caps"` Id string `json: "id"` Name string `json: "name"` Network PeerNetwork `json: "network"` Protocols PeerProtocol `json: "protocols"` }
type PeerIstanbul ¶
type PeerNetwork ¶
type PeerProtocol ¶
type PeerProtocol struct {
Istanbul PeerIstanbul `json: "istanbul"`
}
type StatusReturn ¶
type StatusReturn struct {
Status string `json: "status"`
}
Click to show internal directories.
Click to hide internal directories.