web

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package web handles all web-based user interaction. Users can view and edit Revere components and configurations through its web server. A typical request is routed through the server package to a handler method in the web package. Handler methods then create and manipulate the appropriate VMs, and use the renderables package to display the respective web page.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveIssues

func ActiveIssues(DB *db.DB) func(w http.ResponseWriter, req *http.Request, _ httprouter.Params)

func DeleteSubprobe

func DeleteSubprobe(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func LabelsEdit

func LabelsEdit(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func LabelsIndex

func LabelsIndex(DB *db.DB) func(w http.ResponseWriter, req *http.Request, _ httprouter.Params)

func LabelsSave

func LabelsSave(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func LabelsView

func LabelsView(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func LoadProbeTemplate

func LoadProbeTemplate(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func LoadResourceTemplate

func LoadResourceTemplate(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func LoadTargetTemplate

func LoadTargetTemplate(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func LoadValidResources

func LoadValidResources(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func MonitorsEdit

func MonitorsEdit(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func MonitorsIndex

func MonitorsIndex(DB *db.DB) func(w http.ResponseWriter, req *http.Request, _ httprouter.Params)

func MonitorsSave

func MonitorsSave(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func MonitorsView

func MonitorsView(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func RedirectToSilence

func RedirectToSilence(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func ResourcesIndex

func ResourcesIndex(DB *db.DB) func(w http.ResponseWriter, req *http.Request, _ httprouter.Params)

func ResourcesSave

func ResourcesSave(DB *db.DB) func(w http.ResponseWriter, req *http.Request, _ httprouter.Params)

func SettingsIndex

func SettingsIndex(DB *db.DB) func(w http.ResponseWriter, req *http.Request, _ httprouter.Params)

func SettingsSave

func SettingsSave(DB *db.DB) func(w http.ResponseWriter, req *http.Request, _ httprouter.Params)

func SilencesEdit

func SilencesEdit(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func SilencesIndex

func SilencesIndex(DB *db.DB) func(w http.ResponseWriter, req *http.Request, _ httprouter.Params)

func SilencesSave

func SilencesSave(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func SilencesView

func SilencesView(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func SubprobesIndex

func SubprobesIndex(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

func SubprobesView

func SubprobesView(DB *db.DB) func(w http.ResponseWriter, req *http.Request, p httprouter.Params)

Types

This section is empty.

Directories

Path Synopsis
Package server implements the core engine for Revere's web mode.
Package server implements the core engine for Revere's web mode.
Package tmpl provides a wrapper around golang's html/template package, and provides additional template manipulation functions.
Package tmpl provides a wrapper around golang's html/template package, and provides additional template manipulation functions.
vm
Package vm represents the intermediate step between a revere db struct and a renderable front-end struct.
Package vm represents the intermediate step between a revere db struct and a renderable front-end struct.
renderables
Package renderables processes package vm structs and bundles them with the appropriate metadata, html templates, and scripts to create a fully functional web page.
Package renderables processes package vm structs and bundles them with the appropriate metadata, html templates, and scripts to create a fully functional web page.

Jump to

Keyboard shortcuts

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