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

Function GetOID

pkg/waveobj/waveobj.go:184–190  ·  view source on GitHub ↗
(waveObj WaveObj)

Source from the content-addressed store, hash-verified

182}
183
184func GetOID(waveObj WaveObj) string {
185 desc := getWaveObjDesc(waveObj.GetOType())
186 if desc == nil {
187 return ""
188 }
189 return reflect.ValueOf(waveObj).Elem().FieldByIndex(desc.OIDField.Index).String()
190}
191
192func SetOID(waveObj WaveObj, oid string) {
193 desc := getWaveObjDesc(waveObj.GetOType())

Callers 7

DBSelectMapFunction · 0.92
DBUpdateFunction · 0.92
DBInsertFunction · 0.92
SendWaveObjUpdateFunction · 0.92
ToJsonMapFunction · 0.85
ORefFromWaveObjFunction · 0.85
MakeUpdateFunction · 0.85

Calls 3

getWaveObjDescFunction · 0.85
GetOTypeMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected