MCPcopy Index your code
hub / github.com/coder/coder / DisconnectReason

TypeAlias DisconnectReason

codersdk/disconnect.go:21–21  ·  view source on GitHub ↗

DisconnectReason categorizes why a workspace connection ended. It is emitted as a slog field at every disconnect log site so operators can filter and aggregate disconnects without parsing free-form reason strings. The set of values intentionally stays small. Use DisconnectReasonUnknown when no othe

Source from the content-addressed store, hash-verified

19// constant here (and update its godoc) when a new disconnect class is
20// genuinely distinct from the existing ones.
21type DisconnectReason string
22
23func (r DisconnectReason) SlogField() slog.Field {
24 if r == "" {

Callers 3

sessionHandlerMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected