web

package
v0.0.0-...-ffddd80 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebServer

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

WebServer Photo server struct

func NewWebServer

func NewWebServer() *WebServer

NewWebServer make new struct

func (*WebServer) IndexHandler

func (w *WebServer) IndexHandler(ctx *fasthttp.RequestCtx)

IndexHandler main server handler

func (*WebServer) PhotoHandler

func (w *WebServer) PhotoHandler(ctx *fasthttp.RequestCtx)

PhotoHandler get photo from camera by id

func (*WebServer) Start

func (w *WebServer) Start(ip string, port int, api string) error

Start start web server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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