MCPcopy
hub / github.com/wavetermdev/waveterm / GetRTInfo

Function GetRTInfo

pkg/wstore/wstore_rtinfo.go:128–138  ·  view source on GitHub ↗

GetRTInfo returns the ObjRTInfo for the given ORef, or nil if not found

(oref waveobj.ORef)

Source from the content-addressed store, hash-verified

126
127// GetRTInfo returns the ObjRTInfo for the given ORef, or nil if not found
128func GetRTInfo(oref waveobj.ORef) *waveobj.ObjRTInfo {
129 rtInfoMutex.RLock()
130 defer rtInfoMutex.RUnlock()
131
132 if rtInfo, exists := rtInfoStore[oref]; exists {
133 // Return a copy to avoid external modification
134 copy := *rtInfo
135 return &copy
136 }
137 return nil
138}
139
140// DeleteRTInfo removes the ObjRTInfo for the given ORef
141func DeleteRTInfo(oref waveobj.ORef) {

Callers 10

GetRTInfoCommandMethod · 0.92
StartBuilderCommandMethod · 0.92
makeTerminalBlockDescFunction · 0.92
getTermScrollbackOutputFunction · 0.92
triggerBuildAndWaitFunction · 0.92
WaveAIPostMessageHandlerFunction · 0.92
handleTsunamiBlockDescFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected