frizz

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2019 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Page

func Page(w http.ResponseWriter, req *http.Request, database services.Database) error

Types

type Handler

type Handler struct {
	Cache      *cache.Cache
	Fileserver services.Fileserver
	Database   services.Database
}

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, req *http.Request, send func(message services.Message), receive chan services.Message, tj *tracker.Job) error

func (*Handler) MarshalMessage

func (h *Handler) MarshalMessage(m services.Message) (payload []byte, messageType int, err error)

func (*Handler) Packages

func (h *Handler) Packages(ctx context.Context, info messages.GetPackages, req *http.Request, send func(message services.Message), receive chan services.Message) error

func (*Handler) RequestTimeout

func (h *Handler) RequestTimeout() time.Duration

func (*Handler) StoreError

func (h *Handler) StoreError(ctx context.Context, err error, req *http.Request)

func (*Handler) UnarshalMessage

func (h *Handler) UnarshalMessage(b []byte) (services.Message, error)

func (*Handler) WebsocketPingPeriod

func (h *Handler) WebsocketPingPeriod() time.Duration

func (*Handler) WebsocketPongTimeout

func (h *Handler) WebsocketPongTimeout() time.Duration

func (*Handler) WebsocketTimeout

func (h *Handler) WebsocketTimeout() time.Duration

Directories

Path Synopsis
bug

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL