play

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: 34 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)

Types

type Handler

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

func (*Handler) Deploy

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

func (*Handler) Get

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

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) Initialise

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

func (*Handler) MarshalMessage

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

func (*Handler) RequestTimeout

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

func (*Handler) Share

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

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) Update

func (h *Handler) Update(ctx context.Context, info messages.Update, req *http.Request, send func(message services.Message), receive chan 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

Jump to

Keyboard shortcuts

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