Documentation
¶
Index ¶
- type Poll
- type Result
- type Set
- func (s *Set) Add(requestID uint32, poll Poll) error
- func (s *Set) Drop(requestID uint32, nodeID ids.NodeID) error
- func (s *Set) Get(requestID uint32) (Poll, bool)
- func (s *Set) Len() int
- func (s *Set) Remove(requestID uint32) error
- func (s *Set) Vote(requestID uint32, nodeID ids.NodeID, vote Vote) error
- type Vote
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poll ¶
type Poll interface {
// ID returns the poll ID
ID() uint32
// Vote registers a vote
Vote(nodeID ids.NodeID, vote Vote) error
// Drop removes a node from the poll
Drop(nodeID ids.NodeID) error
// Finished returns true if the poll is finished
Finished() bool
// Result returns the poll result if finished
Result() (Result, error)
// String returns a string representation
String() string
}
Poll represents a consensus poll
Click to show internal directories.
Click to hide internal directories.