services

package
v0.0.11-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 NewNodeServices

func NewNodeServices(feature string) (node *NodeServices)

By default `ibft“

func (*NodeServices) Calls

func (n *NodeServices) Calls(ips []string, uris []string) (err error)

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 PeerIstanbul struct {
	Difficulty int    `json: "difficulty"`
	Head       string `json: "head"`
	Version    int    `json: "version"`
}

type PeerNetwork

type PeerNetwork struct {
	LocalAddress  string `json: "localAddress"`
	RemoteAddress string `json: "remoteAddress"`
}

type PeerProtocol

type PeerProtocol struct {
	Istanbul PeerIstanbul `json: "istanbul"`
}

type StatusReturn

type StatusReturn struct {
	Status string `json: "status"`
}

Jump to

Keyboard shortcuts

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