Documentation ¶
Overview ¶
Package gcore implements the main functionality of the Gophercraft Core Authserver.
Index ¶
- Variables
- type Account
- type CVar
- type CaptchaResponse
- type Core
- func (c *Core) APIKey() string
- func (c *Core) AccountID(user string) uint64
- func (c *Core) AddRealmToConfig(ctx context.Context, req *sys.AddRealmRequest) (*sys.StatusMsg, error)
- func (c *Core) AnnounceRealm(ctx context.Context, req *sys.AnnounceRealmMsg) (*sys.StatusMsg, error)
- func (c *Core) AuthKey(apk string) int
- func (c *Core) CheckCredentials(ctx context.Context, req *sys.Credentials) (*sys.CredentialsResponse, error)
- func (c *Core) CheckPeerIdentity(ctx context.Context, realmID uint64) (*sys.StatusMsg, error)
- func (c *Core) DoRegistration(u, p string) error
- func (c *Core) GetAccount(user string) (*Account, []GameAccount, error)
- func (c *Core) GetAccountID(user string) (uint64, error)
- func (c *Core) GetAuthStatus(r *Request)
- func (c *Core) GetCVar(k string) string
- func (c *Core) GetNextRealmID(ctx context.Context, _ *empty.Empty) (*sys.AddRealmRequest, error)
- func (c *Core) GetTicket(ticket string) (string, time.Time)
- func (c *Core) GetVersionData(ctx context.Context, _ *empty.Empty) (*sys.VersionData, error)
- func (c *Core) Home(rw http.ResponseWriter, r *http.Request)
- func (c *Core) InfoHandler() http.Handler
- func (c *Core) Intercept(required int, fn RequestHandler) *Interceptor
- func (c *Core) ListRealms() []Realm
- func (c *Core) NewCaptcha(r *Request)
- func (c *Core) Ping(ctx context.Context, req *sys.PingMsg) (*sys.PingMsg, error)
- func (c *Core) PublishRealmInfo(r Realm) uint64
- func (c *Core) RealmList(r *Request)
- func (c *Core) RealmState() []Realm
- func (c *Core) Register(r *Request)
- func (c *Core) ReportInfo(ctx context.Context, req *sys.Info) (*sys.StatusMsg, error)
- func (c *Core) ResetAccount(user, pass string, tier sys.Tier) error
- func (c *Core) SetCVar(k, v string)
- func (c *Core) SignIn(r *Request)
- func (c *Core) SignUp(rw http.ResponseWriter, r *http.Request)
- func (c *Core) StoreKey(user, locale, platform string, K []byte)
- func (c *Core) StoreLoginTicket(user, ticket string, expiry time.Time)
- func (c *Core) UserExists(r *Request)
- func (c *Core) VerifyWorld(ctx context.Context, req *sys.VerifyWorldQuery) (*sys.VerifyWorldResponse, error)
- func (c *Core) WebAPI() http.Handler
- type GameAccount
- type GenericResponse
- type Interceptor
- type LoginTicket
- type Realm
- type RegistrationBody
- type Request
- type RequestHandler
- type SessionKey
- type UserExistsResponse
- type WebToken
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Version = vsn.CoreVersion
)
Functions ¶
This section is empty.
Types ¶
type CaptchaResponse ¶
type Core ¶
func (*Core) AddRealmToConfig ¶
func (*Core) AnnounceRealm ¶
func (*Core) CheckCredentials ¶
func (c *Core) CheckCredentials(ctx context.Context, req *sys.Credentials) (*sys.CredentialsResponse, error)
func (*Core) CheckPeerIdentity ¶
func (*Core) DoRegistration ¶
func (*Core) GetAccount ¶
func (c *Core) GetAccount(user string) (*Account, []GameAccount, error)
func (*Core) GetAuthStatus ¶
func (*Core) GetNextRealmID ¶
func (*Core) GetVersionData ¶
func (*Core) InfoHandler ¶
func (*Core) Intercept ¶
func (c *Core) Intercept(required int, fn RequestHandler) *Interceptor
func (*Core) ListRealms ¶
func (*Core) NewCaptcha ¶
func (*Core) PublishRealmInfo ¶
func (*Core) RealmState ¶
func (*Core) ReportInfo ¶
func (*Core) StoreLoginTicket ¶
func (*Core) UserExists ¶
func (*Core) VerifyWorld ¶
func (c *Core) VerifyWorld(ctx context.Context, req *sys.VerifyWorldQuery) (*sys.VerifyWorldResponse, error)
type GameAccount ¶
type GenericResponse ¶
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
func (*Interceptor) ServeHTTP ¶
func (s *Interceptor) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type Realm ¶
type Realm struct { ID uint64 `xorm:"'id' pk" json:"id"` Name string `xorm:"'name'" json:"name"` Version vsn.Build `json:"version"` Locked bool Type config.RealmType `json:"type"` Address string `json:"address"` Description string `json:"description"` ActivePlayers uint32 `json:"activePlayers"` Timezone uint32 LastUpdated time.Time `json:"lastUpdated"` }
type RegistrationBody ¶
type RequestHandler ¶
type RequestHandler func(*Request)
type SessionKey ¶
type UserExistsResponse ¶
Click to show internal directories.
Click to hide internal directories.