Versions in this module Expand all Collapse all v0 v0.0.2 Jan 4, 2019 v0.0.1 Dec 25, 2018 Changes in this version + const FrizzPage + const JsgoPage + const PlayPage + const UnknownPage + func ServeStatic(name string, w http.ResponseWriter, req *http.Request, mimeType string) error + func StreamWithTimeout(w io.Writer, r io.Reader) error + func WriteWithTimeout(w io.Writer, b []byte) error + type Handler struct + Cache *cache.Cache + Database services.Database + Fileserver services.Fileserver + Queue *queue.Queue + Waitgroup *sync.WaitGroup + func New(shutdown chan struct{}) *Handler + func (h *Handler) CssHandler(w http.ResponseWriter, req *http.Request) + func (h *Handler) HealthCheckHandler(w http.ResponseWriter, r *http.Request) + func (h *Handler) IconHandler(w http.ResponseWriter, req *http.Request) + func (h *Handler) PageHandler(w http.ResponseWriter, req *http.Request) + func (h *Handler) ScriptHandler(w http.ResponseWriter, req *http.Request) + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (h *Handler) SocketHandler(s SocketHandlerInterface) func(w http.ResponseWriter, req *http.Request) + type Pather interface + Path func() string + type SocketHandlerInterface interface + Handle func(ctx context.Context, req *http.Request, send func(message services.Message), ...) error + MarshalMessage func(services.Message) (payload []byte, messageType int, err error) + RequestTimeout func() time.Duration + StoreError func(ctx context.Context, err error, req *http.Request) + UnarshalMessage func([]byte) (services.Message, error) + WebsocketPingPeriod func() time.Duration + WebsocketPongTimeout func() time.Duration + WebsocketTimeout func() time.Duration