Documentation ¶
Overview ¶
Package vsn provides utilities for handling protocol versions, as well as Gophercraft software versions.
Index ¶
- Constants
- func BuildRangeOverlap(r1, r2 BuildRange) bool
- func PrintBanner()
- func QueryDescriptors(v Build, desc interface{}, to interface{}) error
- type Build
- func (hasFeature Build) AddedIn(update Build) bool
- func (b Build) BuildInfo() *BuildInfo
- func (b Build) ClientVersion() *realmlist.ClientVersion
- func (b Build) DBD() string
- func (b Build) Exp() int
- func (hasFeature Build) RemovedIn(update Build) bool
- func (b Build) SemVer() string
- func (b Build) String() string
- func (b Build) VersionData() []byte
- type BuildInfo
- type BuildRange
- type CoreVersion
- type Rev
- type Selector
Constants ¶
View Source
const NewAuthSystem = V6_2_4
View Source
const NewCryptSystem = V8_3_0
Variables ¶
This section is empty.
Functions ¶
func BuildRangeOverlap ¶
func BuildRangeOverlap(r1, r2 BuildRange) bool
func PrintBanner ¶
func PrintBanner()
func QueryDescriptors ¶
QueryDescriptors expects
- A map[vsn.BuildRange]<your type> In this case, it will return one match after finding a build range. if any overlaps are detected, it will return an error
Types ¶
type Build ¶
type Build uint32
A Build refers to the snapshot of a protocol that Gophercraft is trying to interact with.
var (
Max Build = 0xFFFFFFFF
)
func (Build) ClientVersion ¶
func (b Build) ClientVersion() *realmlist.ClientVersion
func (Build) VersionData ¶
(legacy auth protocol) Returns a 3-byte field describing the version data. For instance, version 3.3.5 would return []byte{ 3, 3, 5 }
type BuildRange ¶
type BuildRange [2]Build
func Range ¶
func Range(min, max Build) BuildRange
func (BuildRange) Contains ¶
func (br BuildRange) Contains(v Build) bool
func (BuildRange) String ¶
func (br BuildRange) String() string
func (BuildRange) Unary ¶
func (b BuildRange) Unary() bool
type CoreVersion ¶
Refers to the current version of Gophercraft core.
var GophercraftVersion CoreVersion
func ParseCoreVersion ¶
func ParseCoreVersion(str string) (CoreVersion, error)
func (CoreVersion) Cmp ¶
func (i CoreVersion) Cmp(j CoreVersion) int
func (CoreVersion) LessThan ¶
func (i CoreVersion) LessThan(j CoreVersion) bool
func (CoreVersion) String ¶
func (cv CoreVersion) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.