healthchecks

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(root string, dbh *database.DBHandle) http.Handler

func HealthHandler

func HealthHandler(db *database.DBHandle) http.Handler

Types

type Application

type Application struct {
	StartTime      string `json:"start_time"`
	GoroutineCount int    `json:"goroutine_count"`
}

type Memory

type Memory struct {
	System     uint64 `json:"-"`
	HeapSys    uint64 `json:"-"`
	HeapAlloc  uint64 `json:"-"`
	StackSys   uint64 `json:"-"`
	StackInUse uint64 `json:"-"`
	LastGC     uint64 `json:"-"`
	NumGC      uint32 `json:"gc_count"`
}

func (Memory) MarshalJSON

func (m Memory) MarshalJSON() ([]byte, error)

func (*Memory) UnmarshalJSON

func (m *Memory) UnmarshalJSON(data []byte) error

type Observer

type Observer func() (any, error)

Jump to

Keyboard shortcuts

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