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

Function GetClientId

pkg/wstore/wstore.go:34–41  ·  view source on GitHub ↗

in the main server, this will not return empty string it does return empty in wsh, but all wstore methods are invalid in wsh mode, so that shouldn't be an issue

()

Source from the content-addressed store, hash-verified

32// in the main server, this will not return empty string
33// it does return empty in wsh, but all wstore methods are invalid in wsh mode, so that shouldn't be an issue
34func GetClientId() string {
35 clientIdLock.Lock()
36 defer clientIdLock.Unlock()
37 if wavebase.IsDevMode() && cachedClientId == "" {
38 panic("cachedClientId is empty")
39 }
40 return cachedClientId
41}
42
43func UpdateTabName(ctx context.Context, tabId, name string) error {
44 return WithTx(ctx, func(tx *TxWrap) error {

Callers 12

WaveInfoCommandMethod · 0.92
SendTelemetryCommandMethod · 0.92
resolveThisFunction · 0.92
StartConnServerMethod · 0.92
StartJobFunction · 0.92
makeSwapTokenFunction · 0.92
startNewJobMethod · 0.92
GoSendNoTelemetryUpdateFunction · 0.92
WaveAIPostMessageHandlerFunction · 0.92
sendDiagnosticPingFunction · 0.92
sendTelemetryWrapperFunction · 0.92

Calls 1

IsDevModeFunction · 0.92

Tested by

no test coverage detected