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

Method Ping

coderd/workspaceagentsrpc_internal_test.go:426–431  ·  view source on GitHub ↗
(context.Context)

Source from the content-addressed store, hash-verified

424}
425
426func (f *fakePingerCloser) Ping(context.Context) error {
427 f.Lock()
428 defer f.Unlock()
429 f.pings = append(f.pings, time.Now())
430 return nil
431}
432
433func (f *fakePingerCloser) Close(code websocket.StatusCode, reason string) error {
434 f.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected