Help us shape the future of Go! Take the 2026 Go Developer Survey

window

package
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "ui/window"

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivateInput

type ActivateInput struct {
	ClientID string `json:"clientId,omitempty"`
	WindowID string `json:"windowId,omitempty"`
}

type CommandOutput

type CommandOutput struct {
	ClientID string `json:"clientId,omitempty"`
	OK       bool   `json:"ok,omitempty"`
	Error    string `json:"error,omitempty"`
}

type GetInput

type GetInput struct {
	ClientID  string `json:"clientId,omitempty"`
	WindowID  string `json:"windowId,omitempty"`
	WindowKey string `json:"windowKey,omitempty"`
}

type GetOutput

type GetOutput struct {
	ClientID       string                  `json:"clientId,omitempty"`
	Window         *uireg.WindowSnapshot   `json:"window,omitempty"`
	Selected       *uireg.SnapshotSelected `json:"selected,omitempty"`
	DataSourceRefs []string                `json:"dataSourceRefs,omitempty"`
	Surface        *WindowSurface          `json:"surface,omitempty"`
}

type HideInput

type HideInput struct {
	ClientID string `json:"clientId,omitempty"`
	WindowID string `json:"windowId,omitempty"`
}

type ListInput

type ListInput struct {
	ClientID string `json:"clientId,omitempty"`
}

type ListOutput

type ListOutput struct {
	ClientID        string       `json:"clientId,omitempty"`
	FocusedWindowID string       `json:"focusedWindowId,omitempty"`
	Items           []WindowItem `json:"items,omitempty"`
}

type SelectTabInput

type SelectTabInput struct {
	ClientID string `json:"clientId,omitempty"`
	WindowID string `json:"windowId,omitempty"`
	TabID    string `json:"tabId,omitempty"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(bridge *forgeuisvc.Service) *Service

func (*Service) Method

func (s *Service) Method(name string) (svc.Executable, error)

func (*Service) Methods

func (s *Service) Methods() svc.Signatures

func (*Service) Name

func (s *Service) Name() string

type SetFormDataInput

type SetFormDataInput struct {
	ClientID  string                 `json:"clientId,omitempty"`
	WindowID  string                 `json:"windowId,omitempty"`
	WindowKey string                 `json:"windowKey,omitempty"`
	Values    map[string]interface{} `json:"values,omitempty"`
	Replace   bool                   `json:"replace,omitempty"`
}

type WindowControlHint

type WindowControlHint struct {
	ID          string                `json:"id,omitempty"`
	Label       string                `json:"label,omitempty"`
	Type        string                `json:"type,omitempty"`
	Scope       string                `json:"scope,omitempty"`
	BindingPath string                `json:"bindingPath,omitempty"`
	DataField   string                `json:"dataField,omitempty"`
	Value       interface{}           `json:"value,omitempty"`
	Options     []WindowControlOption `json:"options,omitempty"`
}

type WindowControlOption

type WindowControlOption struct {
	Value interface{} `json:"value,omitempty"`
	Label string      `json:"label,omitempty"`
}

type WindowItem

type WindowItem struct {
	ClientID           string                 `json:"clientId,omitempty"`
	WindowID           string                 `json:"windowId,omitempty"`
	WindowKey          string                 `json:"windowKey,omitempty"`
	WindowTitle        string                 `json:"windowTitle,omitempty"`
	ConversationID     string                 `json:"conversationId,omitempty"`
	Presentation       string                 `json:"presentation,omitempty"`
	Region             string                 `json:"region,omitempty"`
	ParentKey          string                 `json:"parentKey,omitempty"`
	WorkspaceSharePct  int                    `json:"workspaceSharePct,omitempty"`
	WorkspaceMinHeight int                    `json:"workspaceMinHeight,omitempty"`
	Parameters         map[string]interface{} `json:"parameters,omitempty"`
	InTab              bool                   `json:"inTab,omitempty"`
	IsModal            bool                   `json:"isModal,omitempty"`
	IsMinimized        bool                   `json:"isMinimized,omitempty"`
	DataSourceRefs     []string               `json:"dataSourceRefs,omitempty"`
}

type WindowSurface

type WindowSurface struct {
	Tabs     []WindowTabHint     `json:"tabs,omitempty"`
	Controls []WindowControlHint `json:"controls,omitempty"`
}

type WindowTabHint

type WindowTabHint struct {
	ContainerID string `json:"containerId,omitempty"`
	TabID       string `json:"tabId,omitempty"`
	Title       string `json:"title,omitempty"`
	Selected    bool   `json:"selected,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL