Documentation ¶
Overview ¶
Package home implements the behavior of a Gophercraft home server
Index ¶
- func Run()
- func RunServer(cfg *config.Home) error
- type APIFunc
- type AccessLevel
- type CaptchaResponse
- type GenericResponse
- type Interceptor
- type Request
- type RequestHandler
- type Server
- func (s *Server) API(prefix string) *WebAPI
- func (c *Server) AccountID(user string) uint64
- func (s *Server) AccountLogin(account *models.Account, username, password string) (string, error)
- func (s *Server) CanEnlistRealm(acc *models.Account) bool
- func (c *Server) GetAccount(user string) (*models.Account, []models.GameAccount, error)
- func (c *Server) GetAccountID(user string) (uint64, error)
- func (c *Server) GetAuthStatus(r *Request)
- func (c *Server) GetCVar(k string) string
- func (c *Server) GetTicket(ticket string) (string, time.Time)
- func (h *Server) HandleEnlistRealm(acc *models.Account, enlistRequest *models.WebEnlistRealmRequest) (*models.WebEnlistRealmResponse, error)
- func (s *Server) HandleSignIn(r *Request)
- func (s *Server) HandleWebLogin(username, password string) (*models.Account, string, error)
- func (s *Server) Home(rw http.ResponseWriter, r *http.Request)
- func (c *Server) InfoHandler() http.Handler
- func (c *Server) Intercept(required int, fn RequestHandler) *Interceptor
- func (c *Server) ListRealms() []models.Realm
- func (c *Server) NewCaptcha(r *Request)
- func (c *Server) PublishRealmInfo(r models.Realm) uint64
- func (s *Server) QueryTokenAccount(token string) (*models.Account, error)
- func (c *Server) RealmList(r *Request)
- func (c *Server) RealmState() []models.Realm
- func (c *Server) Register(r *Request)
- func (c *Server) ResetAccount(user, pass string, tier rpcnet.Tier) error
- func (c *Server) SetCVar(k, v string)
- func (s *Server) SignOutAll(account uint64)
- func (s *Server) SignUp(rw http.ResponseWriter, r *http.Request)
- func (c *Server) StoreKey(user, locale, platform string, K []byte)
- func (c *Server) StoreLoginTicket(user, ticket string, expiry time.Time)
- func (c *Server) UserExists(r *Request)
- func (s *Server) WebServer() http.Handler
- type UserExistsResponse
- type WebAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessLevel ¶
type AccessLevel int
type CaptchaResponse ¶
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 Request ¶
type RequestHandler ¶
type RequestHandler func(*Request)
type Server ¶
func (*Server) AccountLogin ¶
func (*Server) GetAccount ¶
func (*Server) GetAuthStatus ¶
func (*Server) HandleEnlistRealm ¶
func (h *Server) HandleEnlistRealm(acc *models.Account, enlistRequest *models.WebEnlistRealmRequest) (*models.WebEnlistRealmResponse, error)
func (*Server) HandleSignIn ¶
func (*Server) HandleWebLogin ¶
func (*Server) InfoHandler ¶
func (*Server) Intercept ¶
func (c *Server) Intercept(required int, fn RequestHandler) *Interceptor
func (*Server) ListRealms ¶
func (*Server) NewCaptcha ¶
func (*Server) QueryTokenAccount ¶
func (*Server) RealmState ¶
func (*Server) ResetAccount ¶
func (*Server) SignOutAll ¶
func (*Server) StoreLoginTicket ¶
func (*Server) UserExists ¶
type UserExistsResponse ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
package multiproto allows multiple protocols to be interpreted on a single socket, by receiving a small segment of bytes
|
package multiproto allows multiple protocols to be interpreted on a single socket, by receiving a small segment of bytes |
Click to show internal directories.
Click to hide internal directories.