Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MotherShip ¶
type MotherShip struct { Connections map[*websocket.Conn]bool Logger zerolog.Logger Inbox chan Msg Outbox chan Msg }
MotherShip contains pointers to all connections, and handles websockets
func (*MotherShip) ServeHTTP ¶
func (m *MotherShip) ServeHTTP(w http.ResponseWriter, r *http.Request)
our main http.Handler, mounted to "/ws" probably
Click to show internal directories.
Click to hide internal directories.