Documentation ¶
Index ¶
Constants ¶
View Source
const (
// LastHashPrefix is the last hash ardb key prefix
LastHashPrefix = "last_hash_"
)
Variables ¶
View Source
var ( // FirstAggregateHash is used as the prevHash value // for the first aggregation FirstAggregateHash = zerodisk.NilHash )
View Source
var ( // MinSupportedVersion is the minimum supported version // that the tlog client and server of this version supports MinSupportedVersion = zerodisk.NewVersion(1, 1, 0, zerodisk.VersionStageAlpha) )
Functions ¶
Types ¶
type BlockStatus ¶
type BlockStatus int8
BlockStatus is returned by the Tlog server when received block
const ( BlockStatusFlushFailed BlockStatus = -2 BlockStatusRecvFailed BlockStatus = -1 BlockStatusRecvOK BlockStatus = 1 BlockStatusFlushOK BlockStatus = 2 BlockStatusForceFlushReceived BlockStatus = 3 BlockStatusWaitNbdSlaveSyncReceived BlockStatus = 4 )
Tlog Response status values
func (BlockStatus) Error ¶
func (status BlockStatus) Error() error
Error returns this status as an error, returning nil if the status is not an error
func (BlockStatus) Int8 ¶
func (status BlockStatus) Int8() int8
Int8 returns the block status as an int8 value
func (BlockStatus) String ¶
func (status BlockStatus) String() string
String returns the name of the block status
type HandshakeStatus ¶
type HandshakeStatus int8
HandshakeStatus is returned by the Tlog server when receiving the initial handshake message from the client
const ( // returned when something went wrong internally // in the tlogserver during the handshake phase HandshakeStatusInternalServerError HandshakeStatus = -4 // returned when the given VdiskID is not legal // could be because it's not valid, or because it already // exists on the server HandshakeStatusInvalidVdiskID HandshakeStatus = -3 // returned when the given version by the client // was not supported by the server HandshakeStatusInvalidVersion HandshakeStatus = -2 // returned when the given request by the client // could not be read HandshakeStatusInvalidRequest HandshakeStatus = -1 // returned when all information was accepted HandshakeStatusOK HandshakeStatus = 1 )
Handshake status values
func (HandshakeStatus) Error ¶
func (status HandshakeStatus) Error() error
Error returns this status as an error, returning nil if the status is not an error
func (HandshakeStatus) Int8 ¶
func (status HandshakeStatus) Int8() int8
Int8 returns the Handshake status as an int8 value
func (HandshakeStatus) String ¶
func (status HandshakeStatus) String() string
String returns the name of the Hanshake status
Click to show internal directories.
Click to hide internal directories.