Versions in this module Expand all Collapse all v1 v1.4.9 Jul 5, 2021 Changes in this version + var GitCommit string + var String string v1.4.5 Jul 5, 2021 Changes in this version + var ApricotPhase0DefaultTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC) + var ApricotPhase0Times = map[uint32]time.Time + var ApricotPhase1DefaultTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC) + var ApricotPhase1Times = map[uint32]time.Time + var ApricotPhase2DefaultTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC) + var ApricotPhase2Times = map[uint32]time.Time + var Current = NewDefaultApplication(constants.PlatformName, 1, 4, 5) + var CurrentDatabase = DatabaseVersion1_4_5 + var DatabaseVersion1_0_0 = NewDefaultVersion(1, 0, 0) + var DatabaseVersion1_4_5 = NewDefaultVersion(1, 4, 5) + var DefaultVersion1_0_0 = NewDefaultVersion(1, 0, 0) + var MinimumCompatibleVersion = NewDefaultApplication(constants.PlatformName, 1, 4, 0) + var MinimumUnmaskedVersion = NewDefaultApplication(constants.PlatformName, 1, 1, 0) + var PrevDatabase = DatabaseVersion1_0_0 + var PrevMinimumCompatibleVersion = NewDefaultApplication(constants.PlatformName, 1, 3, 0) + var PrevMinimumUnmaskedVersion = NewDefaultApplication(constants.PlatformName, 1, 0, 0) + var VersionParser = NewDefaultApplicationParser() + func GetApricotPhase0Time(networkID uint32) time.Time + func GetApricotPhase1Time(networkID uint32) time.Time + func GetApricotPhase2Time(networkID uint32) time.Time + type Application interface + App func() string + Before func(Application) bool + Compatible func(Application) error + func NewApplication(app string, appSeparator string, versionSeparator string, major int, minor int, ...) Application + func NewDefaultApplication(app string, major int, minor int, patch int) Application + type ApplicationParser interface + Parse func(string) (Application, error) + func NewApplicationParser(appSeparator string, versionSeparator string) ApplicationParser + func NewDefaultApplicationParser() ApplicationParser + type Compatibility interface + Compatible func(Application) error + Connectable func(Application) error + MaskTime func() time.Time + Unmaskable func(Application) error + Version func() Application + WontMask func(Application) error + func GetCompatibility(networkID uint32) Compatibility + func NewCompatibility(version Application, minCompatable Application, minCompatableTime time.Time, ...) Compatibility + type Parser interface + Parse func(string) (Version, error) + func NewDefaultParser() Parser + func NewParser(prefix, separator string) Parser + type Version interface + Compare func(o Version) int + Major func() int + Minor func() int + Patch func() int + func NewDefaultVersion(major, minor, patch int) Version + func NewVersion(major, minor, patch int, prefix, versionSeparator string) Version