server

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentStatusResponse added in v0.11.0

type CurrentStatusResponse struct {
	Status    Status `json:"status"`
	IsIndexed bool   `json:"isIndexed"`
}

type IncidentsResponse added in v0.11.0

type IncidentsResponse struct {
	Incidents []api.Incident `json:"incidents"`
	IsIndexed bool           `json:"isIndexed"`
}

type Server

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

func NewServer

func NewServer(logger *zap.Logger, dbClient *db.DbClient) *Server

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) StartCaches added in v0.11.0

func (s *Server) StartCaches(ctx context.Context)

type Status added in v0.28.0

type Status string
const (
	StatusUp       Status = "UP"
	StatusDegraded Status = "DEGRADED"
	StatusUnknown  Status = "UNKNOWN"
)

type StatusPageCountResponse added in v0.18.0

type StatusPageCountResponse struct {
	StatusPageCount int `json:"statusPageCount"`
}

type StatusPageResponse added in v0.11.0

type StatusPageResponse struct {
	StatusPage api.StatusPage `json:"statusPage"`
}

type StatusPageSearchResponse added in v0.18.0

type StatusPageSearchResponse struct {
	StatusPages []api.StatusPage `json:"statusPages"`
}

type StatusPagesResponse added in v0.27.0

type StatusPagesResponse struct {
	StatusPages []api.StatusPage `json:"statusPages"`
}

Jump to

Keyboard shortcuts

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