(windowId string)
| 27 | } |
| 28 | |
| 29 | func (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 | |
| 39 | func (svc *WindowService) CreateWindow_Meta() tsgenmeta.MethodMeta { |
| 40 | return tsgenmeta.MethodMeta{ |