handlers

package
v0.0.0-...-cbc7d21 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2018 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package handlers.

Package handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSocket

func NewSocket(reader reader.ImageReader, delay int) websocket.Handler

NewSocket returns new socket handler.

Types

type HTML

type HTML struct {
	Template []byte
}

HTML handler.

func NewHTML

func NewHTML(bind string, width, height float64, nogl bool) *HTML

NewHTML returns new HTML handler.

func (*HTML) ServeHTTP

func (h *HTML) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles requests on incoming connections.

type JPEG

type JPEG struct {
	// contains filtered or unexported fields
}

JPEG handler.

func NewJPEG

func NewJPEG(reader reader.ImageReader) *JPEG

NewJPEG returns new JPEG handler.

func (*JPEG) ServeHTTP

func (j *JPEG) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles requests on incoming connections.

type MJPEG

type MJPEG struct {
	// contains filtered or unexported fields
}

MJPEG handler.

func NewMJPEG

func NewMJPEG(reader reader.ImageReader, delay int) *MJPEG

NewMJPEG returns new MJPEG handler.

func (*MJPEG) ServeHTTP

func (m *MJPEG) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles requests on incoming connections.

type Socket

type Socket struct {
	// contains filtered or unexported fields
}

Socket handler.

Jump to

Keyboard shortcuts

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