Documentation ¶
Index ¶
Constants ¶
View Source
const ( // UnknownPhase is the default value. It should not be used. UnknownPhase = Phase(iota) // Prepared is the prepratory phase. The data that is about to change is locked for // concurrent modification, but changes have not yet been written to disk. Prepared // Committed is the committing phase. Data has been committed to disk and will be visible // in all subsequent requests. Committed // Synchronized is the synchronizing phase. It is used to synchronize nodes with each other on a specific event. Synchronized )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Phase ¶
type Phase int
Phase is the transactional phase a given vote can be cast on.
func (Phase) ToProto ¶
func (p Phase) ToProto() gitalypb.VoteTransactionRequest_Phase
ToProto converts the phase into its Protobuf enum. This function panics if called with an invalid phase.
type Vote ¶
type Vote [voteSize]byte
Vote is a vote cast by a node.
func VoteFromData ¶
VoteFromData hashes the given data and converts it to a vote.
func VoteFromHash ¶
VoteFromHash converts the given byte slice containing a hash into a vote.
func VoteFromString ¶
VoteFromString converts the given string representation of the hash into a vote.
Click to show internal directories.
Click to hide internal directories.