Documentation
¶
Index ¶
- func PtrBool(i bool) *bool
- func PtrInt(i int) *int
- type HandleType
- type Handles
- type Opts
- type Server
- func (h *Server) Everyone()
- func (h *Server) On(event string, f func(customer *ws.Customer, msg interface{}))
- func (h *Server) OnConnect(f func(customer ws.Customer) error)
- func (h *Server) OnDisconnect(f func(customer ws.Customer, reason string))
- func (h *Server) OnError(f func(err error))
- func (h *Server) OnEvent(event string, f func(customer *ws.Customer, msg interface{}))
- func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandleType ¶
type HandleType int
Click to show internal directories.
Click to hide internal directories.