Documentation
¶
Index ¶
- func DefaultSocketServer(handler websocket.Handler) socketServer
- func ParseURL(url string) (string, string, string)
- type Hub
- func (h *Hub) ApiRouter(version string) http.Handler
- func (h *Hub) ApiV1Router() http.Handler
- func (h *Hub) Close()
- func (h *Hub) ConnCount() int
- func (h *Hub) Debug(w http.ResponseWriter, r *http.Request)
- func (h *Hub) DeleteRoom(id string)
- func (h *Hub) ExtRouter() http.Handler
- func (h *Hub) GetOrCreateRoom(roomID string) *room.Room
- func (h *Hub) GetRoom(id string) (*room.Room, error)
- func (h *Hub) HandleOp(op, roomID string) string
- func (h *Hub) Handler(ec event.EventChannel, roomID string)
- func (h *Hub) HandlerWrapper(ws *websocket.Conn)
- func (h *Hub) Heartbeat(roomID string)
- func (h *Hub) Load()
- func (h *Hub) MessageCount() int
- func (h *Hub) MessageLoop()
- func (h *Hub) ReadMessages()
- func (h *Hub) RoomCount() int
- func (h *Hub) Save()
- func (h *Hub) SendMessages()
- func (h *Hub) SetRoom(id string, r *room.Room)
- func (h *Hub) Sgf(w http.ResponseWriter, r *http.Request)
- func (h *Hub) Sgfix(w http.ResponseWriter, r *http.Request)
- func (h *Hub) SocketRouter() http.Handler
- func (h *Hub) TwitchRouter() http.Handler
- func (h *Hub) Upload(w http.ResponseWriter, r *http.Request)
- func (h *Hub) WebRouter() http.Handler
- type MockSocketServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSocketServer ¶
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func NewHubWithDB ¶
func (*Hub) ApiV1Router ¶ added in v1.13.0
func (*Hub) DeleteRoom ¶
func (*Hub) HandlerWrapper ¶
func (*Hub) MessageCount ¶
func (*Hub) MessageLoop ¶
func (h *Hub) MessageLoop()
func (*Hub) ReadMessages ¶
func (h *Hub) ReadMessages()
func (*Hub) SendMessages ¶
func (h *Hub) SendMessages()
func (*Hub) SocketRouter ¶
func (*Hub) TwitchRouter ¶
type MockSocketServer ¶
type MockSocketServer struct {
}
func NewMockSocketServer ¶
func NewMockSocketServer() *MockSocketServer
func (*MockSocketServer) ServeHTTP ¶
func (ms *MockSocketServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.