Documentation ¶
Index ¶
- func GetPairID(selfID session.SessionID) session.SessionID
- func GetPartnerID(selfID session.SessionID) session.SessionID
- func NewCORSHandler(handler http.Handler) http.Handler
- type CORS
- type Context
- func (ctx *Context) FeedbackHandler(w http.ResponseWriter, r *http.Request)
- func (ctx *Context) InserConnection(id session.SessionID, conn *websocket.Conn)
- func (ctx *Context) RemoveConnection(sessionID session.SessionID, conn *websocket.Conn)
- func (ctx *Context) SessionHandler(w http.ResponseWriter, r *http.Request)
- func (ctx *Context) SessionSpecificHandler(w http.ResponseWriter, r *http.Request)
- func (ctx *Context) StatusConnHandler(w http.ResponseWriter, r *http.Request)
- func (ctx *Context) WebSocketConnHandler(w http.ResponseWriter, r *http.Request)
- type FeedbackConfig
- type Session
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CORS ¶
type CORS struct {
// contains filtered or unexported fields
}
CORS middleware handler that responds with the following headers to all requests
type Context ¶
type Context struct { SocketStore *socket.Store SessionStore *session.Store FeedbackConfig *FeedbackConfig }
func NewContext ¶
func (*Context) FeedbackHandler ¶
func (ctx *Context) FeedbackHandler(w http.ResponseWriter, r *http.Request)
func (*Context) InserConnection ¶
func (*Context) RemoveConnection ¶
func (*Context) SessionHandler ¶
func (ctx *Context) SessionHandler(w http.ResponseWriter, r *http.Request)
func (*Context) SessionSpecificHandler ¶
func (ctx *Context) SessionSpecificHandler(w http.ResponseWriter, r *http.Request)
func (*Context) StatusConnHandler ¶
func (ctx *Context) StatusConnHandler(w http.ResponseWriter, r *http.Request)
func (*Context) WebSocketConnHandler ¶
func (ctx *Context) WebSocketConnHandler(w http.ResponseWriter, r *http.Request)
type FeedbackConfig ¶
type FeedbackConfig struct {
// contains filtered or unexported fields
}
func InitFeedbackConfig ¶
Click to show internal directories.
Click to hide internal directories.