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 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Phase ¶ added in v14.6.0
type Phase int
Phase is the transactional phase a given vote can be cast on.
func (Phase) ToProto ¶ added in v14.6.0
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 ¶ added in v14.6.0
VoteFromString converts the given string representation of the hash into a vote.
Click to show internal directories.
Click to hide internal directories.