Documentation ¶
Index ¶
Constants ¶
View Source
const (
//HashSize is the length of a hash in bytes
HashSize = 32
)
Variables ¶
View Source
var ( // CurrentVersion represents the current global // version of the zerodisk modules CurrentVersion = NewVersion(1, 1, 0, VersionStageAlpha) )
View Source
var ( //NilHash is a hash with only '0'bytes NilHash = NewHash() )
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version uint32
Version defines the semantic version, used by Client and Server.
func NewVersion ¶
func NewVersion(major, minor, patch uint8, stage VersionStage) Version
NewVersion creates a new version
func (Version) Compare ¶
Compare returns an integer comparing this version with another version. { lt=-1 ; eq=0 ; gt=1 }
type VersionStage ¶
type VersionStage uint8
VersionStage defines the stage of the version
const ( VersionStageLive VersionStage = 1 << iota VersionStageRC VersionStageBeta VersionStageAlpha VersionStageDev )
The different version stages
Click to show internal directories.
Click to hide internal directories.