MCPcopy Create free account
hub / github.com/coder/coder / ConnectionMethod

TypeAlias ConnectionMethod

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

ConnectionMethod describes the network path a workspace connection took at the moment a disconnect log was emitted. It is intended for observability only; do not switch behavior on it.

Source from the content-addressed store, hash-verified

196// took at the moment a disconnect log was emitted. It is intended for
197// observability only; do not switch behavior on it.
198type ConnectionMethod string
199
200func (m ConnectionMethod) SlogField() slog.Field {
201 return slog.F("connection_method", m)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected