Documentation
¶
Index ¶
- type ExamplePost
- type Handlers
- func (h *Handlers) Logger(next http.HandlerFunc) http.HandlerFunc
- func (h *Handlers) MySocketIOServer(w http.ResponseWriter, r *http.Request) *socketio.Server
- func (h *Handlers) MyWebSocket(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) Post(w http.ResponseWriter, r *http.Request)
- func (examples *Handlers) SetupRoutes(mux *http.ServeMux)
- func (h *Handlers) SocketIoLogger(next func(w http.ResponseWriter, r *http.Request) *socketio.Server) http.HandlerFunc
- type WSMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExamplePost ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func NewHandlers ¶
func (*Handlers) Logger ¶
func (h *Handlers) Logger(next http.HandlerFunc) http.HandlerFunc
func (*Handlers) MySocketIOServer ¶
WIP: figure out how to transform endpoints for socket.io. It may only work if it has access to underlying server: https://stackoverflow.com/a/44572186
func (*Handlers) MyWebSocket ¶
func (h *Handlers) MyWebSocket(w http.ResponseWriter, r *http.Request)
func (*Handlers) SetupRoutes ¶
setup routes
func (*Handlers) SocketIoLogger ¶
func (h *Handlers) SocketIoLogger(next func(w http.ResponseWriter, r *http.Request) *socketio.Server) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.