MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetWindow

Method GetWindow

pkg/service/windowservice/windowservice.go:29–37  ·  view source on GitHub ↗
(windowId string)

Source from the content-addressed store, hash-verified

27}
28
29func (svc *WindowService) GetWindow(windowId string) (*waveobj.Window, error) {
30 ctx, cancelFn := context.WithTimeout(context.Background(), DefaultTimeout)
31 defer cancelFn()
32 window, err := wstore.DBGet[*waveobj.Window](ctx, windowId)
33 if err != nil {
34 return nil, fmt.Errorf("error getting window: %w", err)
35 }
36 return window, nil
37}
38
39func (svc *WindowService) CreateWindow_Meta() tsgenmeta.MethodMeta {
40 return tsgenmeta.MethodMeta{

Callers

nothing calls this directly

Calls 1

DBGetFunction · 0.92

Tested by

no test coverage detected