Documentation
¶
Index ¶
- type Network
- func (n *Network) AddNode(node *Node) *Network
- func (n *Network) ConnectedBTNodeIDs(btNodeID string) *Network
- func (n *Network) GetConnectedBTNodeIDs() string
- func (n *Network) GetNumBootstrapNodes() int
- func (n *Network) GetSnowQuorumSize() int
- func (n *Network) GetSnowSampleSize() int
- func (n *Network) GetTxFee() uint64
- func (n *Network) HasBootstrapNodes(b bool) *Network
- func (n *Network) Image(image string) *Network
- func (n *Network) RemoveNode(node *Node) *Network
- func (n *Network) SnowSize(snowSampleSize int, snowQuorumSize int) *Network
- func (n *Network) TxFee(txFee uint64) *Network
- type Node
- func (node *Node) BootstrapAttempts(i int) *Node
- func (node *Node) BootstrapNode(bootstrap bool) *Node
- func (node *Node) BootstrapNodeID(i int) *Node
- func (node *Node) ConnectedBTNodeIDs(btNodes string) *Node
- func (node *Node) GetBootstrapAttempts() int
- func (node *Node) GetBootstrapNodeID() int
- func (node *Node) GetConnectedBTNodeIDs() string
- func (node *Node) GetHTTPPort() int
- func (node *Node) GetImage() string
- func (node *Node) GetPrivateKey() string
- func (node *Node) GetStaking() bool
- func (node *Node) GetStakingPort() int
- func (node *Node) GetTLSCert() string
- func (node *Node) HasCerts() bool
- func (node *Node) Image(imageName string) *Node
- func (node *Node) IsBootstrapNode() bool
- func (node *Node) IsStaking(b bool) *Node
- func (node *Node) PrivateKey(key string) *Node
- func (node *Node) String() string
- func (node *Node) TLSCert(cert string) *Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
Network defines the Network structure of the Nodes in the Topology
func (*Network) ConnectedBTNodeIDs ¶
func (*Network) GetConnectedBTNodeIDs ¶
func (*Network) GetNumBootstrapNodes ¶
func (*Network) GetSnowQuorumSize ¶
func (*Network) GetSnowSampleSize ¶
func (*Network) HasBootstrapNodes ¶
func (*Network) RemoveNode ¶
type Node ¶
type Node struct { ID string // contains filtered or unexported fields }
func (*Node) BootstrapAttempts ¶
func (*Node) BootstrapNode ¶
func (*Node) BootstrapNodeID ¶
func (*Node) ConnectedBTNodeIDs ¶
func (*Node) GetBootstrapAttempts ¶
func (*Node) GetBootstrapNodeID ¶
func (*Node) GetConnectedBTNodeIDs ¶
func (*Node) GetHTTPPort ¶
func (*Node) GetPrivateKey ¶
func (*Node) GetStaking ¶
func (*Node) GetStakingPort ¶
func (*Node) GetTLSCert ¶
func (*Node) IsBootstrapNode ¶
func (*Node) PrivateKey ¶
Click to show internal directories.
Click to hide internal directories.