Documentation ¶
Index ¶
- func Page(w http.ResponseWriter, req *http.Request, database services.Database) error
- type Handler
- func (h *Handler) Handle(ctx context.Context, req *http.Request, send func(message services.Message), ...) error
- func (h *Handler) MarshalMessage(m services.Message) (payload []byte, messageType int, err error)
- func (h *Handler) Packages(ctx context.Context, info messages.GetPackages, req *http.Request, ...) error
- func (h *Handler) RequestTimeout() time.Duration
- func (h *Handler) StoreError(ctx context.Context, err error, req *http.Request)
- func (h *Handler) UnarshalMessage(b []byte) (services.Message, error)
- func (h *Handler) WebsocketPingPeriod() time.Duration
- func (h *Handler) WebsocketPongTimeout() time.Duration
- func (h *Handler) WebsocketTimeout() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct { Cache *cache.Cache Fileserver services.Fileserver Database services.Database }
func (*Handler) MarshalMessage ¶
func (*Handler) RequestTimeout ¶
func (*Handler) StoreError ¶
func (*Handler) UnarshalMessage ¶
func (*Handler) WebsocketPingPeriod ¶
func (*Handler) WebsocketPongTimeout ¶
func (*Handler) WebsocketTimeout ¶
Click to show internal directories.
Click to hide internal directories.