Documentation ¶
Index ¶
- type LocalNode
- func (l *LocalNode) ChainInfo(group string) bool
- func (l *LocalNode) GetBeacon(groupPath string, round uint64) (resp *drand.PublicRandResponse, cmd string)
- func (l *LocalNode) GetGroup() *key.Group
- func (l *LocalNode) Index() int
- func (l *LocalNode) Ping() bool
- func (l *LocalNode) PrintLog()
- func (l *LocalNode) PrivateAddr() string
- func (l *LocalNode) PublicAddr() string
- func (l *LocalNode) RunDKG(nodes, thr int, timeout string, leader bool, leaderAddr string, ...) *key.Group
- func (l *LocalNode) RunReshare(nodes, thr int, oldGroup string, timeout string, leader bool, ...) *key.Group
- func (l *LocalNode) Start(certFolder string) error
- func (l *LocalNode) Stop()
- func (l *LocalNode) WriteCertificate(p string)
- func (l *LocalNode) WritePublic(p string)
- type Node
- type NodeProc
- func (n *NodeProc) ChainInfo(group string) bool
- func (n *NodeProc) GetBeacon(groupPath string, round uint64) (*drand.PublicRandResponse, string)
- func (n *NodeProc) GetGroup() *key.Group
- func (n *NodeProc) Index() int
- func (n *NodeProc) Ping() bool
- func (n *NodeProc) PrintLog()
- func (n *NodeProc) PrivateAddr() string
- func (n *NodeProc) PublicAddr() string
- func (n *NodeProc) RunDKG(nodes, thr int, timeout string, leader bool, leaderAddr string, ...) *key.Group
- func (n *NodeProc) RunReshare(nodes, thr int, oldGroup string, timeout string, leader bool, ...) *key.Group
- func (n *NodeProc) Start(certFolder string) error
- func (n *NodeProc) Stop()
- func (n *NodeProc) UpdateBinary(binary string)
- func (n *NodeProc) WriteCertificate(path string)
- func (n *NodeProc) WritePublic(path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalNode ¶
type LocalNode struct {
// contains filtered or unexported fields
}
func (*LocalNode) PrivateAddr ¶
func (*LocalNode) PublicAddr ¶
func (*LocalNode) RunReshare ¶
func (*LocalNode) WriteCertificate ¶
func (*LocalNode) WritePublic ¶
type Node ¶
type Node interface { Start(certFolder string) error PrivateAddr() string PublicAddr() string Index() int RunDKG(nodes, thr int, timeout string, leader bool, leaderAddr string, beaconOffset int) *key.Group GetGroup() *key.Group ChainInfo(group string) bool Ping() bool GetBeacon(groupPath string, round uint64) (*drand.PublicRandResponse, string) WriteCertificate(path string) WritePublic(path string) Stop() PrintLog() }
func NewLocalNode ¶
type NodeProc ¶
type NodeProc struct {
// contains filtered or unexported fields
}
func (*NodeProc) PrivateAddr ¶
func (*NodeProc) PublicAddr ¶
func (*NodeProc) RunReshare ¶
func (*NodeProc) UpdateBinary ¶
UpdateBinary updates the binary this node uses for control, to e.g. simulate an upgrade
func (*NodeProc) WriteCertificate ¶
func (*NodeProc) WritePublic ¶
Click to show internal directories.
Click to hide internal directories.