Documentation ¶
Index ¶
- Variables
- type Account
- type CVar
- type EnlistedRealm
- type GameAccount
- type LoginTicket
- type Realm
- type RealmList
- type RegistrationBody
- type SessionKey
- type WebEnlistRealmRequest
- type WebEnlistRealmResponse
- type WebRegisterRequest
- type WebRegisterResponse
- type WebSignInRequest
- type WebSignInResponse
- type WebToken
Constants ¶
This section is empty.
Variables ¶
View Source
var RealmOnlineDelayMeansOffline = 15 * time.Second
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID uint64 `xorm:"'id' pk autoincr"` Tier rpcnet.Tier `xorm:"'tier'"` Locale i18n.Locale `xorm:"'locale'"` Platform string `xorm:"'platform'"` Username string `xorm:"'username'"` // SRP Identity hash IdentityHash []byte `xorm:"'identity_hash'"` // Bcrypt hash - should be used when SRP IdentityHash is not required WebLoginHash []byte `xorm:"'web_login_hash'"` Locked bool `xorm:"'locked'"` }
Account represents the authentication account This account tracks what privileges you are allowed, and what your password is.
type EnlistedRealm ¶
type EnlistedRealm struct { ID uint64 `xorm:"'id' pk autoincr"` Note string `xorm:"'note'"` Owner uint64 `xorm:"'owner'"` Fingerprint string `xorm:"'fingerprint'"` }
EnlistedRealm tracks a realm's registration state. Its only purpose is to act as a marker in the ID space of the home server, so that the real metadata can be updated at will
type GameAccount ¶
type GameAccount struct { ID uint64 `xorm:"'id' pk autoincr"` Name string `xorm:"'name'"` Active bool `xorm:"'active'"` Owner uint64 `xorm:"'owner'"` }
GameAccount represents the the game data account. GameAccounts track what character lists are tied to your account. (Legacy servers) By changing your account to Active, you can select a different character list upon logging in
type LoginTicket ¶
Bnet server
type Realm ¶
type Realm struct { ID uint64 `xorm:"'id' pk" json:"id"` Owner uint64 Name string `xorm:"'name'" json:"name"` ClientVersion vsn.Build `json:"version"` Locked bool Type config.RealmType `json:"type"` Address string `json:"address"` RedirectAddress string `json:"redirectAddress"` Description string `json:"description"` ActivePlayers uint32 `json:"activePlayers"` Timezone i18n.Timezone LastUpdated time.Time `json:"lastUpdated"` TierNeeded rpcnet.Tier // TODO: have special hidden servers that only show up if you are of a tier }
Realm tracks a public realm listing
type RegistrationBody ¶
type SessionKey ¶
type WebEnlistRealmRequest ¶
type WebEnlistRealmResponse ¶
type WebEnlistRealmResponse struct {
RealmID uint64 `json:"realmID"`
}
type WebRegisterRequest ¶
type WebRegisterResponse ¶
type WebSignInRequest ¶
type WebSignInResponse ¶
Click to show internal directories.
Click to hide internal directories.