Movatterモバイル変換


[0]ホーム

URL:


health

package
v2.23.0Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:3Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

View Source
const (SeverityOKSeverity = "ok"SeverityWarningSeverity = "warning"SeverityErrorSeverity = "error"// CodeUnknown is a catch-all health code when something unexpected goes wrong (for example, a panic).CodeUnknownCode = "EUNKNOWN"CodeProxyUpdateCode = "EWP01"CodeProxyFetchCode = "EWP02"// CodeProxyVersionMismatch is no longer used as it's no longer a critical// error.// CodeProxyVersionMismatch Code = "EWP03"CodeProxyUnhealthyCode = "EWP04"CodeDatabasePingFailedCode = "EDB01"CodeDatabasePingSlowCode = "EDB02"CodeWebsocketDialCode = "EWS01"CodeWebsocketEchoCode = "EWS02"CodeWebsocketMsgCode = "EWS03"CodeAccessURLNotSetCode = "EACS01"CodeAccessURLInvalidCode = "EACS02"CodeAccessURLFetchCode = "EACS03"CodeAccessURLNotOKCode = "EACS04"CodeDERPNodeUsesWebsocketCode = `EDERP01`CodeDERPOneNodeUnhealthyCode = `EDERP02`CodeSTUNNoNodes                = `ESTUN01`CodeSTUNMapVaryDest            = `ESTUN02`CodeProvisionerDaemonsNoProvisionerDaemonsCode = `EPD01`CodeProvisionerDaemonVersionMismatchCode = `EPD02`CodeProvisionerDaemonAPIMajorVersionDeprecatedCode = `EPD03`CodeInterfaceSmallMTU = `EIF01`)

Variables

This section is empty.

Functions

funcErrorf

func Errorf(codeCode, msgstring, args ...any) *string

Errorf is a convenience function for returning a stringly-typed version of a Message.

Types

typeCode

type Codestring

Code is a stable identifier used to link to documentation.@typescript-generate Code

typeMessage

type Message struct {CodeCode   `json:"code"`Messagestring `json:"message"`}

@typescript-generate Message

funcMessagef

func Messagef(codeCode, msgstring, args ...any)Message

Messagef is a convenience function for returning a health.Message

func (Message)String

func (mMessage) String()string

func (Message)URLadded inv2.11.0

func (mMessage) URL(basestring)string

URL returns a link to the admin/monitoring/health-check docs page for the given Message.NOTE: if using a custom docs URL, specify base.

typeSeverity

type Severitystring

@typescript-generate Severity

func (Severity)Value

func (sSeverity) Value()int

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp