Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
NewHandler returns a new server
func (*Handler) GetOverlordClient ¶
func (h *Handler) GetOverlordClient() *OverlordClient
func (*Handler) RouteOverlord ¶
func (h *Handler) RouteOverlord()
RouteOverlord are all routes server received from overlord
type OverlordClient ¶
OverlordClient maintans connection to overlord We expect only one OverlordClient for each server
func NewOverlordClient ¶
func NewOverlordClient(oc *websocket.Conn) *OverlordClient
NewOverlordClient returns a client connecting to overlord for coordiation between different server
type Session ¶
type Session struct { ID string // Should I make direct reference RoomID string // contains filtered or unexported fields }
Session represents a session connected from the browser to the current server It requires one connection to browser and one connection to the overlord connection to browser is 1-1. connection to overlord is n - 1 Peerconnection can be from other server to ensure better latency
Click to show internal directories.
Click to hide internal directories.