webstatus

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AlertDetailPath is the path of the alert details
	AlertDetailPath = "/alert/detail/"
)
View Source
const (
	// FilesPath is the path for files
	FilesPath = "/files/"
)
View Source
const (
	// IncidentDetailPath is the path of the incitedent details
	IncidentDetailPath = "/incident/detail/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WebStatus

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

WebStatus displays the current status on the web

func New

func New() *WebStatus

New registers a WebStatus on the event bus

func (*WebStatus) Ent

func (s *WebStatus) Ent() *db.Client

Ent returns the db.Access

func (*WebStatus) Error added in v0.10.3

func (s *WebStatus) Error(w http.ResponseWriter, r *http.Request,
	msg string, err error, status int)

Jump to

Keyboard shortcuts

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