Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockedRank ¶
type MockedRank int
MockedRank is a mocked rank implementation that is used for testing.
func (MockedRank) Compare ¶
func (m MockedRank) Compare(other MockedRank) int
Compare compares the MockedRank to another MockedRank.
type Vote ¶
type Vote[Rank constraints.Comparable[Rank]] struct { // Voter is the identity of the voter. Voter account.SeatIndex // Rank is the rank of the voter. Rank Rank // contains filtered or unexported fields }
Vote represents a vote that is cast by a voter.
func NewVote ¶
func NewVote[Rank constraints.Comparable[Rank]](voter account.SeatIndex, rank Rank) *Vote[Rank]
NewVote creates a new vote.
Click to show internal directories.
Click to hide internal directories.