server

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 15 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 {
	IsOkay bool `json:"isOkay"`
}

type IncidentsResponse added in v0.11.0

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

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 StatusPageCountResponse added in v0.18.0

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

type StatusPageResponse added in v0.11.0

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

type StatusPageSearchResponse added in v0.18.0

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

Jump to

Keyboard shortcuts

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