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

Method debugService

coderd/x/chatd/chatd_debug.go:38–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36)
37
38func (p *Server) debugService() *chatdebug.Service {
39 if p == nil {
40 return nil
41 }
42 if p.debugSvcFactory == nil {
43 return p.debugSvc
44 }
45 p.debugSvcInit.Do(func() {
46 p.debugSvc = p.debugSvcFactory()
47 p.debugSvcReady.Store(p.debugSvc != nil)
48 })
49 return p.debugSvc
50}
51
52func (p *Server) existingDebugService() *chatdebug.Service {
53 if p == nil {

Callers 4

scheduleDebugCleanupMethod · 0.95
newDebugAwareModelMethod · 0.95
NewFunction · 0.95

Calls 2

DoMethod · 0.65
StoreMethod · 0.45

Tested by

no test coverage detected