view

package
v0.1.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Name = "ui/view"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetInput

type GetInput struct {
	ID string `json:"id"`
}

type GetOutput

type GetOutput struct {
	Item *ListItem `json:"item,omitempty"`
}

type ListInput

type ListInput struct{}

type ListItem

type ListItem struct {
	ID                 string                   `json:"id,omitempty"`
	Title              string                   `json:"title,omitempty"`
	Description        string                   `json:"description,omitempty"`
	WindowKey          string                   `json:"windowKey,omitempty"`
	Presentation       string                   `json:"presentation,omitempty"`
	Region             string                   `json:"region,omitempty"`
	OpenMode           string                   `json:"openMode,omitempty"`
	IdentityScope      string                   `json:"identityScope,omitempty"`
	WorkspaceSharePct  int                      `json:"workspaceSharePct,omitempty"`
	WorkspaceMinHeight int                      `json:"workspaceMinHeight,omitempty"`
	ReportBuilderRef   string                   `json:"reportBuilderRef,omitempty"`
	Parameters         []viewproto.Parameter    `json:"parameters,omitempty"`
	ReportPresets      []viewproto.ReportPreset `json:"reportPresets,omitempty"`
	Capabilities       viewproto.Capabilities   `json:"capabilities,omitempty"`
}

type ListItemEnricher added in v0.1.17

type ListItemEnricher func(context.Context, *ListItem) error

type ListOutput

type ListOutput struct {
	Items []ListItem `json:"items,omitempty"`
}

type OpenInput

type OpenInput struct {
	ID         string                 `json:"id,omitempty"`
	Parameters map[string]interface{} `json:"parameters,omitempty"`
	OpenMode   string                 `json:"openMode,omitempty"`
	Items      []OpenItem             `json:"items,omitempty"`
	ClientID   string                 `json:"clientId,omitempty"`
	TimeoutMs  int                    `json:"timeoutMs,omitempty"`
}

type OpenItem

type OpenItem struct {
	ID         string                 `json:"id"`
	Parameters map[string]interface{} `json:"parameters"`
	OpenMode   string                 `json:"openMode,omitempty"`
}

type OpenOutput

type OpenOutput struct {
	ClientID               string                            `json:"clientId,omitempty"`
	WindowID               string                            `json:"windowId,omitempty"`
	SelectedWindowID       string                            `json:"selectedWindowId,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"`
	ReportPresetResolution *viewproto.ReportPresetResolution `json:"reportPresetResolution,omitempty"`
	Items                  []OpenResultItem                  `json:"items,omitempty"`
	OK                     bool                              `json:"ok,omitempty"`
	Error                  string                            `json:"error,omitempty"`
}

type OpenResultItem

type OpenResultItem struct {
	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"`
	ReportPresetResolution *viewproto.ReportPresetResolution `json:"reportPresetResolution,omitempty"`
}

type Option added in v0.1.17

type Option func(*Service)

func WithListItemEnricher added in v0.1.17

func WithListItemEnricher(enricher ListItemEnricher) Option

type Service

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

func New

func New(repository *repo.Repository, bridge *forgeuisvc.Service, options ...Option) *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

Jump to

Keyboard shortcuts

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