web

package
v0.0.0-...-bb4fd4e Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	Title       string
	Ports       []string
	Controllers []monitor.Controller
	Views       []*monitor.View
	Color       string
	Theme       theme.Theme
	Themes      theme.Themes
	Cameras     camera.Cameras
}

func NewPage

func NewPage(router *mux.Router,
	controllers []monitor.Controller,
	ports []string,
	layout *template.Template,
	themes theme.Themes) (wp *Page, err error)

func (*Page) GetView

func (wp *Page) GetView(w http.ResponseWriter, r *http.Request) (ctlr monitor.Controller, view string, err error)

Jump to

Keyboard shortcuts

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