Documentation
¶
Index ¶
- type Conn
- type Map
- type Player
- type Server
- func (s *Server) HandleMessage(source *Player, message Map) error
- func (s *Server) ListenAndServe() error
- func (s *Server) LoadManifest()
- func (s *Server) RelayInviteCommand(command string, source *Player, message Map)
- func (s *Server) ServeLayout(w http.ResponseWriter, r *http.Request)
- func (s *Server) ServeWS(w http.ResponseWriter, r *http.Request)
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Player ¶
type Player struct { Username string `json:"username"` // contains filtered or unexported fields }
type Server ¶
type Server struct { Players map[string]*Player Root string Debug bool LayoutBuffer []byte http.Server // contains filtered or unexported fields }
func (*Server) ListenAndServe ¶
func (*Server) LoadManifest ¶
func (s *Server) LoadManifest()
func (*Server) RelayInviteCommand ¶
func (*Server) ServeLayout ¶
func (s *Server) ServeLayout(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.