api

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthChecker

func NewHealthChecker(version string, check callback) http.Handler

Types

type Handlers

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

func NewHandlers

func NewHandlers(u *v1.Users, i *v1.Info, in *v1.Integration, n *v1.Notify, t token.Service, a *ui.App) *Handlers

type HealthResponse

type HealthResponse struct {
	HTTPCode int    `json:"http_code"`
	Version  string `json:"version"`
	Ping     bool   `json:"ping_db"`
}

type Routes

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

func NewRoutes

func NewRoutes(h *Handlers, pm *metrics.Storage) *Routes

func (*Routes) AddHealthCheck

func (d *Routes) AddHealthCheck(healthHandler http.Handler) *Routes

func (*Routes) AttachMetrics

func (d *Routes) AttachMetrics() *Routes

func (*Routes) AttachOnCallApp

func (d *Routes) AttachOnCallApp() *Routes

func (*Routes) AttachProfiler

func (d *Routes) AttachProfiler(debugMode bool) *Routes

func (*Routes) Create

func (d *Routes) Create() *mux.Router

func (*Routes) R

func (d *Routes) R() *mux.Router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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