handlers

package
v0.0.0-...-b302c77 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: GPL-3.0 Imports: 12 Imported by: 2

Documentation

Overview

Package handlers.

Package handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTML

type HTML struct {
	Template []byte
}

HTML handler.

func NewHTML

func NewHTML(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 Index

type Index struct {
}

Index handler.

func NewIndex

func NewIndex() *Index

NewIndex returns new Index handler.

func (*Index) ServeHTTP

func (i *Index) 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.

func NewSocket

func NewSocket(reader reader.ImageReader, delay int) *Socket

NewSocket returns new socket handler.

func (*Socket) ServeHTTP

func (s *Socket) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles requests on incoming connections.

Jump to

Keyboard shortcuts

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