MCPcopy Index your code
hub / github.com/bytebase/bytebase / getInstanceID

Method getInstanceID

backend/api/lsp/handler.go:132–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130}
131
132func (h *Handler) getInstanceID() string {
133 h.mu.Lock()
134 defer h.mu.Unlock()
135 if h.metadata == nil {
136 return ""
137 }
138 id, err := common.GetInstanceID(h.metadata.InstanceID)
139 if err != nil {
140 return ""
141 }
142 return id
143}
144
145func (h *Handler) getScene() base.SceneType {
146 h.mu.Lock()

Callers 2

getEngineTypeMethod · 0.95

Calls 1

GetInstanceIDFunction · 0.92

Tested by

no test coverage detected