webstatus

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 41 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 Page added in v0.10.0

type Page struct {
	ID    template.HTML
	State string
	URL   string
}

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) Alerts

func (s *WebStatus) Alerts()

Alerts TODO remove

func (*WebStatus) Ent

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

Ent returns the db.Access

func (*WebStatus) Files

func (s *WebStatus) Files(pid uuid.UUID)

Files TODO remove

func (*WebStatus) Incidents

func (s *WebStatus) Incidents()

Incidents TODO remove

func (*WebStatus) IncidentsSummary

func (s *WebStatus) IncidentsSummary()

IncidentsSummary TODO remove

func (*WebStatus) MigrateAlerts

func (s *WebStatus) MigrateAlerts()

MigrateAlerts TODO remove

func (*WebStatus) MigrateIncidents

func (s *WebStatus) MigrateIncidents()

MigrateIncidents TODO remove

Jump to

Keyboard shortcuts

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