Documentation
¶
Index ¶
- Constants
- Variables
- func NewWindow(windowID uint64) browserapi.Window
- func RegisterEventPublisherServer(s grpc.ServiceRegistrar, srv EventPublisherServer)
- func RegisterFloatingServer(s grpc.ServiceRegistrar, srv FloatingServer)
- func RegisterNotificationsServer(s grpc.ServiceRegistrar, srv NotificationsServer)
- func RegisterResourceOpenerServer(s grpc.ServiceRegistrar, srv ResourceOpenerServer)
- func RegisterWindowManagerServer(s grpc.ServiceRegistrar, srv WindowManagerServer)
- type BarMessage
- func (*BarMessage) Descriptor() ([]byte, []int)deprecated
- func (x *BarMessage) GetClose() *handlerrpc.CloseStreamResponse
- func (x *BarMessage) GetCursor() *handlerrpc.CursorStreamResponse
- func (x *BarMessage) GetDimensions() *handlerrpc.DimensionsStreamResponse
- func (x *BarMessage) GetDraw() *handlerrpc.DrawStreamResponse
- func (x *BarMessage) GetHandle() *handlerrpc.HandleStreamResponse
- func (x *BarMessage) GetRequest() *BarRequest
- func (x *BarMessage) GetSelection() *handlerrpc.SelectionStreamResponse
- func (x *BarMessage) GetType() handlerrpc.MessageType
- func (*BarMessage) ProtoMessage()
- func (x *BarMessage) ProtoReflect() protoreflect.Message
- func (x *BarMessage) Reset()
- func (m *BarMessage) SetClose(r *handlerrpc.CloseStreamResponse)
- func (m *BarMessage) SetCursor(r *handlerrpc.CursorStreamResponse)
- func (m *BarMessage) SetDimensions(r *handlerrpc.DimensionsStreamResponse)
- func (m *BarMessage) SetDraw(r *handlerrpc.DrawStreamResponse)
- func (m *BarMessage) SetHandle(r *handlerrpc.HandleStreamResponse)
- func (m *BarMessage) SetSelection(r *handlerrpc.SelectionStreamResponse)
- func (x *BarMessage) String() string
- type BarRequest
- func (*BarRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BarRequest) GetFrame() BarRequest_Frame
- func (x *BarRequest) GetOrientation() Orientation
- func (x *BarRequest) GetSize() uint32
- func (*BarRequest) ProtoMessage()
- func (x *BarRequest) ProtoReflect() protoreflect.Message
- func (x *BarRequest) Reset()
- func (x *BarRequest) String() string
- type BarRequest_Frame
- func (BarRequest_Frame) Descriptor() protoreflect.EnumDescriptor
- func (x BarRequest_Frame) Enum() *BarRequest_Frame
- func (BarRequest_Frame) EnumDescriptor() ([]byte, []int)deprecated
- func (x BarRequest_Frame) Number() protoreflect.EnumNumber
- func (x BarRequest_Frame) String() string
- func (BarRequest_Frame) Type() protoreflect.EnumType
- type Client
- func (c *Client) Bar(config browserapi.BarConfig, h tui.Handler) error
- func (c *Client) Close() (err error)
- func (c *Client) CloseWindow(win browserapi.Window) error
- func (c *Client) Floating(h browserapi.Floating, cfg browserapi.FloatingConfig) (browserapi.Window, error)
- func (c *Client) Focus() (browserapi.Window, error)
- func (c *Client) Init(ctx context.Context, cc grpc.ClientConnInterface)
- func (c *Client) Interrupt(ctx context.Context) error
- func (c *Client) Notify(level browserapi.NotificationLevel, msg string, args ...interface{}) (string, error)
- func (c *Client) NotifyOnce(level browserapi.NotificationLevel, msg string, args ...interface{}) (string, error)
- func (c *Client) Open(resource workspaceapi.URI) (browserapi.Handler, error)
- func (c *Client) PublishEventNone() error
- func (c *Client) SetWindowContent(win browserapi.Window, h browserapi.Handler) error
- func (c *Client) Split(o browserapi.Orientation, win browserapi.Window, h browserapi.Handler) (browserapi.Window, error)
- func (c *Client) Tab(uri workspaceapi.URI, icon rune, name string, h browserapi.Handler) (browserapi.Handler, error)
- func (c *Client) UpdateNotificationProgress(id, message string, progress, total int64) error
- type DimensionsRequest
- type DimensionsResponse
- func (*DimensionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DimensionsResponse) GetHeight() uint32
- func (x *DimensionsResponse) GetWidth() uint32
- func (*DimensionsResponse) ProtoMessage()
- func (x *DimensionsResponse) ProtoReflect() protoreflect.Message
- func (x *DimensionsResponse) Reset()
- func (x *DimensionsResponse) String() string
- type EventPublisherClient
- type EventPublisherServer
- type FloatingClient
- type FloatingServer
- type FloatingWindowMessage
- func (*FloatingWindowMessage) Descriptor() ([]byte, []int)deprecated
- func (x *FloatingWindowMessage) GetClose() *handlerrpc.CloseStreamResponse
- func (x *FloatingWindowMessage) GetCursor() *handlerrpc.CursorStreamResponse
- func (x *FloatingWindowMessage) GetDimensions() *handlerrpc.DimensionsStreamResponse
- func (x *FloatingWindowMessage) GetDraw() *handlerrpc.DrawStreamResponse
- func (x *FloatingWindowMessage) GetHandle() *handlerrpc.HandleStreamResponse
- func (x *FloatingWindowMessage) GetRequest() *FloatingWindowRequest
- func (x *FloatingWindowMessage) GetSelection() *handlerrpc.SelectionStreamResponse
- func (x *FloatingWindowMessage) GetType() handlerrpc.MessageType
- func (*FloatingWindowMessage) ProtoMessage()
- func (x *FloatingWindowMessage) ProtoReflect() protoreflect.Message
- func (x *FloatingWindowMessage) Reset()
- func (m *FloatingWindowMessage) SetClose(r *handlerrpc.CloseStreamResponse)
- func (m *FloatingWindowMessage) SetCursor(r *handlerrpc.CursorStreamResponse)
- func (m *FloatingWindowMessage) SetDimensions(r *handlerrpc.DimensionsStreamResponse)
- func (m *FloatingWindowMessage) SetDraw(r *handlerrpc.DrawStreamResponse)
- func (m *FloatingWindowMessage) SetHandle(r *handlerrpc.HandleStreamResponse)
- func (m *FloatingWindowMessage) SetSelection(r *handlerrpc.SelectionStreamResponse)
- func (x *FloatingWindowMessage) String() string
- type FloatingWindowRequest
- func (*FloatingWindowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FloatingWindowRequest) GetAlignment() uint32
- func (x *FloatingWindowRequest) GetNoWindowBar() bool
- func (x *FloatingWindowRequest) GetOffset() *termrpc.Coordinates
- func (x *FloatingWindowRequest) GetTitle() string
- func (*FloatingWindowRequest) ProtoMessage()
- func (x *FloatingWindowRequest) ProtoReflect() protoreflect.Message
- func (x *FloatingWindowRequest) Reset()
- func (x *FloatingWindowRequest) String() string
- type FocusRequest
- type FocusResponse
- type Mapping
- type NotificationsClient
- type NotificationsServer
- type NotifyRequest
- func (*NotifyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotifyRequest) GetLevel() uint32
- func (x *NotifyRequest) GetMsg() string
- func (*NotifyRequest) ProtoMessage()
- func (x *NotifyRequest) ProtoReflect() protoreflect.Message
- func (x *NotifyRequest) Reset()
- func (x *NotifyRequest) String() string
- type NotifyResponse
- type OpenResourceRequest
- func (*OpenResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OpenResourceRequest) GetResource() string
- func (*OpenResourceRequest) ProtoMessage()
- func (x *OpenResourceRequest) ProtoReflect() protoreflect.Message
- func (x *OpenResourceRequest) Reset()
- func (x *OpenResourceRequest) String() string
- type OpenResourceResponse
- func (*OpenResourceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OpenResourceResponse) GetUri() string
- func (*OpenResourceResponse) ProtoMessage()
- func (x *OpenResourceResponse) ProtoReflect() protoreflect.Message
- func (x *OpenResourceResponse) Reset()
- func (x *OpenResourceResponse) String() string
- type Orientation
- func (Orientation) Descriptor() protoreflect.EnumDescriptor
- func (x Orientation) Enum() *Orientation
- func (Orientation) EnumDescriptor() ([]byte, []int)deprecated
- func (x Orientation) Number() protoreflect.EnumNumber
- func (x Orientation) String() string
- func (Orientation) Type() protoreflect.EnumType
- type PublishRequest
- type PublishResponse
- type ResourceOpenerClient
- type ResourceOpenerServer
- type SplitRequest
- func (*SplitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SplitRequest) GetOrientation() Orientation
- func (x *SplitRequest) GetUri() string
- func (x *SplitRequest) GetWindowId() uint64
- func (*SplitRequest) ProtoMessage()
- func (x *SplitRequest) ProtoReflect() protoreflect.Message
- func (x *SplitRequest) Reset()
- func (x *SplitRequest) String() string
- type SplitWindowMessage
- func (*SplitWindowMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SplitWindowMessage) GetClose() *handlerrpc.CloseStreamResponse
- func (x *SplitWindowMessage) GetCursor() *handlerrpc.CursorStreamResponse
- func (x *SplitWindowMessage) GetDimensions() *handlerrpc.DimensionsStreamResponse
- func (x *SplitWindowMessage) GetDraw() *handlerrpc.DrawStreamResponse
- func (x *SplitWindowMessage) GetHandle() *handlerrpc.HandleStreamResponse
- func (x *SplitWindowMessage) GetRequest() *SplitRequest
- func (x *SplitWindowMessage) GetSelection() *handlerrpc.SelectionStreamResponse
- func (x *SplitWindowMessage) GetType() handlerrpc.MessageType
- func (*SplitWindowMessage) ProtoMessage()
- func (x *SplitWindowMessage) ProtoReflect() protoreflect.Message
- func (x *SplitWindowMessage) Reset()
- func (m *SplitWindowMessage) SetClose(r *handlerrpc.CloseStreamResponse)
- func (m *SplitWindowMessage) SetCursor(r *handlerrpc.CursorStreamResponse)
- func (m *SplitWindowMessage) SetDimensions(r *handlerrpc.DimensionsStreamResponse)
- func (m *SplitWindowMessage) SetDraw(r *handlerrpc.DrawStreamResponse)
- func (m *SplitWindowMessage) SetHandle(r *handlerrpc.HandleStreamResponse)
- func (m *SplitWindowMessage) SetSelection(r *handlerrpc.SelectionStreamResponse)
- func (x *SplitWindowMessage) String() string
- type TabMessage
- func (*TabMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TabMessage) GetClose() *handlerrpc.CloseStreamResponse
- func (x *TabMessage) GetCursor() *handlerrpc.CursorStreamResponse
- func (x *TabMessage) GetDimensions() *handlerrpc.DimensionsStreamResponse
- func (x *TabMessage) GetDraw() *handlerrpc.DrawStreamResponse
- func (x *TabMessage) GetHandle() *handlerrpc.HandleStreamResponse
- func (x *TabMessage) GetRequest() *TabRequest
- func (x *TabMessage) GetSelection() *handlerrpc.SelectionStreamResponse
- func (x *TabMessage) GetType() handlerrpc.MessageType
- func (*TabMessage) ProtoMessage()
- func (x *TabMessage) ProtoReflect() protoreflect.Message
- func (x *TabMessage) Reset()
- func (m *TabMessage) SetClose(r *handlerrpc.CloseStreamResponse)
- func (m *TabMessage) SetCursor(r *handlerrpc.CursorStreamResponse)
- func (m *TabMessage) SetDimensions(r *handlerrpc.DimensionsStreamResponse)
- func (m *TabMessage) SetDraw(r *handlerrpc.DrawStreamResponse)
- func (m *TabMessage) SetHandle(r *handlerrpc.HandleStreamResponse)
- func (m *TabMessage) SetSelection(r *handlerrpc.SelectionStreamResponse)
- func (x *TabMessage) String() string
- type TabRequest
- func (*TabRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TabRequest) GetResourceIcon() string
- func (x *TabRequest) GetResourceId() string
- func (x *TabRequest) GetResourceName() string
- func (*TabRequest) ProtoMessage()
- func (x *TabRequest) ProtoReflect() protoreflect.Message
- func (x *TabRequest) Reset()
- func (x *TabRequest) String() string
- type Token
- func (h Token) Close() error
- func (h Token) Cursor() (term.Coordinates, term.CursorStyle, bool)
- func (h Token) Dimensions() (width, height int)
- func (h Token) Draw(w term.Writer)
- func (h Token) Handle(term.Event) (exit, handled bool)
- func (h Token) Resize(width, height int)
- func (h Token) Selection() (string, bool)
- type UnimplementedEventPublisherServer
- type UnimplementedFloatingServer
- type UnimplementedNotificationsServer
- func (UnimplementedNotificationsServer) Notify(context.Context, *NotifyRequest) (*NotifyResponse, error)
- func (UnimplementedNotificationsServer) NotifyOnce(context.Context, *NotifyRequest) (*NotifyResponse, error)
- func (UnimplementedNotificationsServer) UpdateNotificationProgress(context.Context, *UpdateNotificationProgressRequest) (*UpdateNotificationProgressResponse, error)
- type UnimplementedResourceOpenerServer
- type UnimplementedWindowManagerServer
- func (UnimplementedWindowManagerServer) Bar(grpc.BidiStreamingServer[BarMessage, handlerrpc.ServerMessage]) error
- func (UnimplementedWindowManagerServer) CloseWindow(context.Context, *WindowCloseRequest) (*WindowCloseResponse, error)
- func (UnimplementedWindowManagerServer) Floating(grpc.BidiStreamingServer[FloatingWindowMessage, handlerrpc.ServerMessage]) error
- func (UnimplementedWindowManagerServer) Focus(context.Context, *FocusRequest) (*FocusResponse, error)
- func (UnimplementedWindowManagerServer) SetContent(grpc.BidiStreamingServer[WindowSetContentMessage, handlerrpc.ServerMessage]) error
- func (UnimplementedWindowManagerServer) Split(grpc.BidiStreamingServer[SplitWindowMessage, handlerrpc.ServerMessage]) error
- func (UnimplementedWindowManagerServer) Tab(grpc.BidiStreamingServer[TabMessage, handlerrpc.ServerMessage]) error
- type UnsafeEventPublisherServer
- type UnsafeFloatingServer
- type UnsafeNotificationsServer
- type UnsafeResourceOpenerServer
- type UnsafeWindowManagerServer
- type UpdateNotificationProgressRequest
- func (*UpdateNotificationProgressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNotificationProgressRequest) GetId() string
- func (x *UpdateNotificationProgressRequest) GetMsg() string
- func (x *UpdateNotificationProgressRequest) GetProgress() int64
- func (x *UpdateNotificationProgressRequest) GetTotal() int64
- func (*UpdateNotificationProgressRequest) ProtoMessage()
- func (x *UpdateNotificationProgressRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNotificationProgressRequest) Reset()
- func (x *UpdateNotificationProgressRequest) String() string
- type UpdateNotificationProgressResponse
- func (*UpdateNotificationProgressResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateNotificationProgressResponse) ProtoMessage()
- func (x *UpdateNotificationProgressResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateNotificationProgressResponse) Reset()
- func (x *UpdateNotificationProgressResponse) String() string
- type WindowCloseRequest
- func (*WindowCloseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WindowCloseRequest) GetWindowId() uint64
- func (*WindowCloseRequest) ProtoMessage()
- func (x *WindowCloseRequest) ProtoReflect() protoreflect.Message
- func (x *WindowCloseRequest) Reset()
- func (x *WindowCloseRequest) String() string
- type WindowCloseResponse
- type WindowManagerClient
- type WindowManagerServer
- type WindowManager_BarClient
- type WindowManager_BarServer
- type WindowManager_FloatingClient
- type WindowManager_FloatingServer
- type WindowManager_SetContentClient
- type WindowManager_SetContentServer
- type WindowManager_SplitClient
- type WindowManager_SplitServer
- type WindowManager_TabClient
- type WindowManager_TabServer
- type WindowSetContentMessage
- func (*WindowSetContentMessage) Descriptor() ([]byte, []int)deprecated
- func (x *WindowSetContentMessage) GetClose() *handlerrpc.CloseStreamResponse
- func (x *WindowSetContentMessage) GetCursor() *handlerrpc.CursorStreamResponse
- func (x *WindowSetContentMessage) GetDimensions() *handlerrpc.DimensionsStreamResponse
- func (x *WindowSetContentMessage) GetDraw() *handlerrpc.DrawStreamResponse
- func (x *WindowSetContentMessage) GetHandle() *handlerrpc.HandleStreamResponse
- func (x *WindowSetContentMessage) GetRequest() *WindowSetContentRequest
- func (x *WindowSetContentMessage) GetSelection() *handlerrpc.SelectionStreamResponse
- func (x *WindowSetContentMessage) GetType() handlerrpc.MessageType
- func (*WindowSetContentMessage) ProtoMessage()
- func (x *WindowSetContentMessage) ProtoReflect() protoreflect.Message
- func (x *WindowSetContentMessage) Reset()
- func (m *WindowSetContentMessage) SetClose(r *handlerrpc.CloseStreamResponse)
- func (m *WindowSetContentMessage) SetCursor(r *handlerrpc.CursorStreamResponse)
- func (m *WindowSetContentMessage) SetDimensions(r *handlerrpc.DimensionsStreamResponse)
- func (m *WindowSetContentMessage) SetDraw(r *handlerrpc.DrawStreamResponse)
- func (m *WindowSetContentMessage) SetHandle(r *handlerrpc.HandleStreamResponse)
- func (m *WindowSetContentMessage) SetSelection(r *handlerrpc.SelectionStreamResponse)
- func (x *WindowSetContentMessage) String() string
- type WindowSetContentRequest
- func (*WindowSetContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WindowSetContentRequest) GetUri() string
- func (x *WindowSetContentRequest) GetWindowId() uint64
- func (*WindowSetContentRequest) ProtoMessage()
- func (x *WindowSetContentRequest) ProtoReflect() protoreflect.Message
- func (x *WindowSetContentRequest) Reset()
- func (x *WindowSetContentRequest) String() string
Constants ¶
const ( Notifications_Notify_FullMethodName = "/browser.Notifications/Notify" Notifications_NotifyOnce_FullMethodName = "/browser.Notifications/NotifyOnce" Notifications_UpdateNotificationProgress_FullMethodName = "/browser.Notifications/UpdateNotificationProgress" )
const ( WindowManager_Focus_FullMethodName = "/browser.WindowManager/Focus" WindowManager_Split_FullMethodName = "/browser.WindowManager/Split" WindowManager_Bar_FullMethodName = "/browser.WindowManager/Bar" WindowManager_Floating_FullMethodName = "/browser.WindowManager/Floating" WindowManager_Tab_FullMethodName = "/browser.WindowManager/Tab" WindowManager_SetContent_FullMethodName = "/browser.WindowManager/SetContent" WindowManager_CloseWindow_FullMethodName = "/browser.WindowManager/CloseWindow" )
const (
EventPublisher_Publish_FullMethodName = "/browser.EventPublisher/Publish"
)
const (
Floating_Dimensions_FullMethodName = "/browser.Floating/Dimensions"
)
const (
ResourceOpener_Open_FullMethodName = "/browser.ResourceOpener/Open"
)
Variables ¶
var ( Orientation_name = map[int32]string{ 0: "Default", 1: "Top", 2: "Bottom", 3: "Left", 4: "Right", } Orientation_value = map[string]int32{ "Default": 0, "Top": 1, "Bottom": 2, "Left": 3, "Right": 4, } )
Enum value maps for Orientation.
var ( BarRequest_Frame_name = map[int32]string{ 0: "Default", 1: "Always", 2: "Never", } BarRequest_Frame_value = map[string]int32{ "Default": 0, "Always": 1, "Never": 2, } )
Enum value maps for BarRequest_Frame.
var EventPublisher_ServiceDesc = grpc.ServiceDesc{ ServiceName: "browser.EventPublisher", HandlerType: (*EventPublisherServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Publish", Handler: _EventPublisher_Publish_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "browserrpc/browser.proto", }
EventPublisher_ServiceDesc is the grpc.ServiceDesc for EventPublisher service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_browserrpc_browser_proto protoreflect.FileDescriptor
var Floating_ServiceDesc = grpc.ServiceDesc{ ServiceName: "browser.Floating", HandlerType: (*FloatingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Dimensions", Handler: _Floating_Dimensions_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "browserrpc/browser.proto", }
Floating_ServiceDesc is the grpc.ServiceDesc for Floating service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Notifications_ServiceDesc = grpc.ServiceDesc{ ServiceName: "browser.Notifications", HandlerType: (*NotificationsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Notify", Handler: _Notifications_Notify_Handler, }, { MethodName: "NotifyOnce", Handler: _Notifications_NotifyOnce_Handler, }, { MethodName: "UpdateNotificationProgress", Handler: _Notifications_UpdateNotificationProgress_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "browserrpc/browser.proto", }
Notifications_ServiceDesc is the grpc.ServiceDesc for Notifications service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ResourceOpener_ServiceDesc = grpc.ServiceDesc{ ServiceName: "browser.ResourceOpener", HandlerType: (*ResourceOpenerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Open", Handler: _ResourceOpener_Open_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "browserrpc/browser.proto", }
ResourceOpener_ServiceDesc is the grpc.ServiceDesc for ResourceOpener service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var WindowManager_ServiceDesc = grpc.ServiceDesc{ ServiceName: "browser.WindowManager", HandlerType: (*WindowManagerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Focus", Handler: _WindowManager_Focus_Handler, }, { MethodName: "CloseWindow", Handler: _WindowManager_CloseWindow_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Split", Handler: _WindowManager_Split_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "Bar", Handler: _WindowManager_Bar_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "Floating", Handler: _WindowManager_Floating_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "Tab", Handler: _WindowManager_Tab_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "SetContent", Handler: _WindowManager_SetContent_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "browserrpc/browser.proto", }
WindowManager_ServiceDesc is the grpc.ServiceDesc for WindowManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func NewWindow ¶
func NewWindow(windowID uint64) browserapi.Window
NewWindow returns a browserapi.Window that represents the window with the given ID.
func RegisterEventPublisherServer ¶
func RegisterEventPublisherServer(s grpc.ServiceRegistrar, srv EventPublisherServer)
func RegisterFloatingServer ¶
func RegisterFloatingServer(s grpc.ServiceRegistrar, srv FloatingServer)
func RegisterNotificationsServer ¶
func RegisterNotificationsServer(s grpc.ServiceRegistrar, srv NotificationsServer)
func RegisterResourceOpenerServer ¶
func RegisterResourceOpenerServer(s grpc.ServiceRegistrar, srv ResourceOpenerServer)
func RegisterWindowManagerServer ¶
func RegisterWindowManagerServer(s grpc.ServiceRegistrar, srv WindowManagerServer)
Types ¶
type BarMessage ¶
type BarMessage struct {
Type handlerrpc.MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=handler.MessageType" json:"type,omitempty"`
Draw *handlerrpc.DrawStreamResponse `protobuf:"bytes,2,opt,name=draw,proto3" json:"draw,omitempty"`
Handle *handlerrpc.HandleStreamResponse `protobuf:"bytes,3,opt,name=handle,proto3" json:"handle,omitempty"`
Close *handlerrpc.CloseStreamResponse `protobuf:"bytes,5,opt,name=close,proto3" json:"close,omitempty"`
Cursor *handlerrpc.CursorStreamResponse `protobuf:"bytes,6,opt,name=cursor,proto3" json:"cursor,omitempty"`
Selection *handlerrpc.SelectionStreamResponse `protobuf:"bytes,7,opt,name=selection,proto3" json:"selection,omitempty"`
Dimensions *handlerrpc.DimensionsStreamResponse `protobuf:"bytes,8,opt,name=dimensions,proto3" json:"dimensions,omitempty"`
Request *BarRequest `protobuf:"bytes,10,opt,name=request,proto3" json:"request,omitempty"`
// contains filtered or unexported fields
}
func (*BarMessage) Descriptor
deprecated
func (*BarMessage) Descriptor() ([]byte, []int)
Deprecated: Use BarMessage.ProtoReflect.Descriptor instead.
func (*BarMessage) GetClose ¶
func (x *BarMessage) GetClose() *handlerrpc.CloseStreamResponse
func (*BarMessage) GetCursor ¶
func (x *BarMessage) GetCursor() *handlerrpc.CursorStreamResponse
func (*BarMessage) GetDimensions ¶
func (x *BarMessage) GetDimensions() *handlerrpc.DimensionsStreamResponse
func (*BarMessage) GetDraw ¶
func (x *BarMessage) GetDraw() *handlerrpc.DrawStreamResponse
func (*BarMessage) GetHandle ¶
func (x *BarMessage) GetHandle() *handlerrpc.HandleStreamResponse
func (*BarMessage) GetRequest ¶
func (x *BarMessage) GetRequest() *BarRequest
func (*BarMessage) GetSelection ¶
func (x *BarMessage) GetSelection() *handlerrpc.SelectionStreamResponse
func (*BarMessage) GetType ¶
func (x *BarMessage) GetType() handlerrpc.MessageType
func (*BarMessage) ProtoMessage ¶
func (*BarMessage) ProtoMessage()
func (*BarMessage) ProtoReflect ¶
func (x *BarMessage) ProtoReflect() protoreflect.Message
func (*BarMessage) Reset ¶
func (x *BarMessage) Reset()
func (*BarMessage) SetClose ¶
func (m *BarMessage) SetClose(r *handlerrpc.CloseStreamResponse)
SetClose satisfies handlerrpc.StreamMessage.
func (*BarMessage) SetCursor ¶
func (m *BarMessage) SetCursor(r *handlerrpc.CursorStreamResponse)
SetCursor satisfies handlerrpc.StreamMessage.
func (*BarMessage) SetDimensions ¶
func (m *BarMessage) SetDimensions(r *handlerrpc.DimensionsStreamResponse)
SetDimensions satisfies handlerrpc.StreamMessage.
func (*BarMessage) SetDraw ¶
func (m *BarMessage) SetDraw(r *handlerrpc.DrawStreamResponse)
SetDraw satisfies handlerrpc.StreamMessage.
func (*BarMessage) SetHandle ¶
func (m *BarMessage) SetHandle(r *handlerrpc.HandleStreamResponse)
SetHandle satisfies handlerrpc.StreamMessage.
func (*BarMessage) SetSelection ¶
func (m *BarMessage) SetSelection(r *handlerrpc.SelectionStreamResponse)
SetSelection satisfies handlerrpc.StreamMessage.
func (*BarMessage) String ¶
func (x *BarMessage) String() string
type BarRequest ¶
type BarRequest struct {
Orientation Orientation `protobuf:"varint,1,opt,name=orientation,proto3,enum=browser.Orientation" json:"orientation,omitempty"`
Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
Frame BarRequest_Frame `protobuf:"varint,3,opt,name=frame,proto3,enum=browser.BarRequest_Frame" json:"frame,omitempty"`
// contains filtered or unexported fields
}
func (*BarRequest) Descriptor
deprecated
func (*BarRequest) Descriptor() ([]byte, []int)
Deprecated: Use BarRequest.ProtoReflect.Descriptor instead.
func (*BarRequest) GetFrame ¶
func (x *BarRequest) GetFrame() BarRequest_Frame
func (*BarRequest) GetOrientation ¶
func (x *BarRequest) GetOrientation() Orientation
func (*BarRequest) GetSize ¶
func (x *BarRequest) GetSize() uint32
func (*BarRequest) ProtoMessage ¶
func (*BarRequest) ProtoMessage()
func (*BarRequest) ProtoReflect ¶
func (x *BarRequest) ProtoReflect() protoreflect.Message
func (*BarRequest) Reset ¶
func (x *BarRequest) Reset()
func (*BarRequest) String ¶
func (x *BarRequest) String() string
type BarRequest_Frame ¶
type BarRequest_Frame int32
const ( BarRequest_Default BarRequest_Frame = 0 BarRequest_Always BarRequest_Frame = 1 BarRequest_Never BarRequest_Frame = 2 )
func (BarRequest_Frame) Descriptor ¶
func (BarRequest_Frame) Descriptor() protoreflect.EnumDescriptor
func (BarRequest_Frame) Enum ¶
func (x BarRequest_Frame) Enum() *BarRequest_Frame
func (BarRequest_Frame) EnumDescriptor
deprecated
func (BarRequest_Frame) EnumDescriptor() ([]byte, []int)
Deprecated: Use BarRequest_Frame.Descriptor instead.
func (BarRequest_Frame) Number ¶
func (x BarRequest_Frame) Number() protoreflect.EnumNumber
func (BarRequest_Frame) String ¶
func (x BarRequest_Frame) String() string
func (BarRequest_Frame) Type ¶
func (BarRequest_Frame) Type() protoreflect.EnumType
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client satisfies Browser by talking to a browser server over RPC.
func NewClient ¶
func NewClient(ctx context.Context, cc grpc.ClientConnInterface) *Client
NewClient allocates storage for a new Client and initializes it.
func (*Client) Close ¶
Close closes all resources associated with this Client. This client should not be used after this method is called.
func (*Client) CloseWindow ¶
func (c *Client) CloseWindow(win browserapi.Window) error
CloseWindow satisfies browserapi.Browser.
func (*Client) Floating ¶
func (c *Client) Floating( h browserapi.Floating, cfg browserapi.FloatingConfig, ) (browserapi.Window, error)
Floating satisfies browser.WindowManager
func (*Client) Init ¶
func (c *Client) Init(ctx context.Context, cc grpc.ClientConnInterface)
Init initializes this Client with the given client and parent context.
func (*Client) Notify ¶
func (c *Client) Notify(level browserapi.NotificationLevel, msg string, args ...interface{}) ( string, error, )
Notify satisfies Browser.
func (*Client) NotifyOnce ¶
func (c *Client) NotifyOnce(level browserapi.NotificationLevel, msg string, args ...interface{}) ( string, error, )
NotifyOnce satisfies Browser.
func (*Client) Open ¶
func (c *Client) Open(resource workspaceapi.URI) (browserapi.Handler, error)
Open satisfies Browser.
func (*Client) PublishEventNone ¶
PublishEventNone satisfies Browser.
func (*Client) SetWindowContent ¶
func (c *Client) SetWindowContent(win browserapi.Window, h browserapi.Handler) error
SetWindowContent satisfies browserapi.Browser.
func (*Client) Split ¶
func (c *Client) Split( o browserapi.Orientation, win browserapi.Window, h browserapi.Handler, ) (browserapi.Window, error)
Split satisfies Browser.
func (*Client) Tab ¶
func (c *Client) Tab( uri workspaceapi.URI, icon rune, name string, h browserapi.Handler, ) (browserapi.Handler, error)
Tab satisfies browser.WindowManager
type DimensionsRequest ¶
type DimensionsRequest struct {
// contains filtered or unexported fields
}
func (*DimensionsRequest) Descriptor
deprecated
func (*DimensionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use DimensionsRequest.ProtoReflect.Descriptor instead.
func (*DimensionsRequest) ProtoMessage ¶
func (*DimensionsRequest) ProtoMessage()
func (*DimensionsRequest) ProtoReflect ¶
func (x *DimensionsRequest) ProtoReflect() protoreflect.Message
func (*DimensionsRequest) Reset ¶
func (x *DimensionsRequest) Reset()
func (*DimensionsRequest) String ¶
func (x *DimensionsRequest) String() string
type DimensionsResponse ¶
type DimensionsResponse struct {
Width uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
func (*DimensionsResponse) Descriptor
deprecated
func (*DimensionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use DimensionsResponse.ProtoReflect.Descriptor instead.
func (*DimensionsResponse) GetHeight ¶
func (x *DimensionsResponse) GetHeight() uint32
func (*DimensionsResponse) GetWidth ¶
func (x *DimensionsResponse) GetWidth() uint32
func (*DimensionsResponse) ProtoMessage ¶
func (*DimensionsResponse) ProtoMessage()
func (*DimensionsResponse) ProtoReflect ¶
func (x *DimensionsResponse) ProtoReflect() protoreflect.Message
func (*DimensionsResponse) Reset ¶
func (x *DimensionsResponse) Reset()
func (*DimensionsResponse) String ¶
func (x *DimensionsResponse) String() string
type EventPublisherClient ¶
type EventPublisherClient interface {
Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error)
}
EventPublisherClient is the client API for EventPublisher service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEventPublisherClient ¶
func NewEventPublisherClient(cc grpc.ClientConnInterface) EventPublisherClient
type EventPublisherServer ¶
type EventPublisherServer interface {
Publish(context.Context, *PublishRequest) (*PublishResponse, error)
// contains filtered or unexported methods
}
EventPublisherServer is the server API for EventPublisher service. All implementations must embed UnimplementedEventPublisherServer for forward compatibility.
type FloatingClient ¶
type FloatingClient interface {
Dimensions(ctx context.Context, in *DimensionsRequest, opts ...grpc.CallOption) (*DimensionsResponse, error)
}
FloatingClient is the client API for Floating service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFloatingClient ¶
func NewFloatingClient(cc grpc.ClientConnInterface) FloatingClient
type FloatingServer ¶
type FloatingServer interface {
Dimensions(context.Context, *DimensionsRequest) (*DimensionsResponse, error)
// contains filtered or unexported methods
}
FloatingServer is the server API for Floating service. All implementations must embed UnimplementedFloatingServer for forward compatibility.
type FloatingWindowMessage ¶
type FloatingWindowMessage struct {
Type handlerrpc.MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=handler.MessageType" json:"type,omitempty"`
Draw *handlerrpc.DrawStreamResponse `protobuf:"bytes,2,opt,name=draw,proto3" json:"draw,omitempty"`
Handle *handlerrpc.HandleStreamResponse `protobuf:"bytes,3,opt,name=handle,proto3" json:"handle,omitempty"`
Close *handlerrpc.CloseStreamResponse `protobuf:"bytes,5,opt,name=close,proto3" json:"close,omitempty"`
Cursor *handlerrpc.CursorStreamResponse `protobuf:"bytes,6,opt,name=cursor,proto3" json:"cursor,omitempty"`
Selection *handlerrpc.SelectionStreamResponse `protobuf:"bytes,7,opt,name=selection,proto3" json:"selection,omitempty"`
Dimensions *handlerrpc.DimensionsStreamResponse `protobuf:"bytes,8,opt,name=dimensions,proto3" json:"dimensions,omitempty"`
Request *FloatingWindowRequest `protobuf:"bytes,10,opt,name=request,proto3" json:"request,omitempty"`
// contains filtered or unexported fields
}
func (*FloatingWindowMessage) Descriptor
deprecated
func (*FloatingWindowMessage) Descriptor() ([]byte, []int)
Deprecated: Use FloatingWindowMessage.ProtoReflect.Descriptor instead.
func (*FloatingWindowMessage) GetClose ¶
func (x *FloatingWindowMessage) GetClose() *handlerrpc.CloseStreamResponse
func (*FloatingWindowMessage) GetCursor ¶
func (x *FloatingWindowMessage) GetCursor() *handlerrpc.CursorStreamResponse
func (*FloatingWindowMessage) GetDimensions ¶
func (x *FloatingWindowMessage) GetDimensions() *handlerrpc.DimensionsStreamResponse
func (*FloatingWindowMessage) GetDraw ¶
func (x *FloatingWindowMessage) GetDraw() *handlerrpc.DrawStreamResponse
func (*FloatingWindowMessage) GetHandle ¶
func (x *FloatingWindowMessage) GetHandle() *handlerrpc.HandleStreamResponse
func (*FloatingWindowMessage) GetRequest ¶
func (x *FloatingWindowMessage) GetRequest() *FloatingWindowRequest
func (*FloatingWindowMessage) GetSelection ¶
func (x *FloatingWindowMessage) GetSelection() *handlerrpc.SelectionStreamResponse
func (*FloatingWindowMessage) GetType ¶
func (x *FloatingWindowMessage) GetType() handlerrpc.MessageType
func (*FloatingWindowMessage) ProtoMessage ¶
func (*FloatingWindowMessage) ProtoMessage()
func (*FloatingWindowMessage) ProtoReflect ¶
func (x *FloatingWindowMessage) ProtoReflect() protoreflect.Message
func (*FloatingWindowMessage) Reset ¶
func (x *FloatingWindowMessage) Reset()
func (*FloatingWindowMessage) SetClose ¶
func (m *FloatingWindowMessage) SetClose(r *handlerrpc.CloseStreamResponse)
SetClose satisfies handlerrpc.StreamMessage.
func (*FloatingWindowMessage) SetCursor ¶
func (m *FloatingWindowMessage) SetCursor(r *handlerrpc.CursorStreamResponse)
SetCursor satisfies handlerrpc.StreamMessage.
func (*FloatingWindowMessage) SetDimensions ¶
func (m *FloatingWindowMessage) SetDimensions(r *handlerrpc.DimensionsStreamResponse)
SetDimensions satisfies handlerrpc.StreamMessage.
func (*FloatingWindowMessage) SetDraw ¶
func (m *FloatingWindowMessage) SetDraw(r *handlerrpc.DrawStreamResponse)
SetDraw satisfies handlerrpc.StreamMessage.
func (*FloatingWindowMessage) SetHandle ¶
func (m *FloatingWindowMessage) SetHandle(r *handlerrpc.HandleStreamResponse)
SetHandle satisfies handlerrpc.StreamMessage.
func (*FloatingWindowMessage) SetSelection ¶
func (m *FloatingWindowMessage) SetSelection(r *handlerrpc.SelectionStreamResponse)
SetSelection satisfies handlerrpc.StreamMessage.
func (*FloatingWindowMessage) String ¶
func (x *FloatingWindowMessage) String() string
type FloatingWindowRequest ¶
type FloatingWindowRequest struct {
Offset *termrpc.Coordinates `protobuf:"bytes,1,opt,name=offset,proto3" json:"offset,omitempty"`
Alignment uint32 `protobuf:"varint,2,opt,name=alignment,proto3" json:"alignment,omitempty"`
NoWindowBar bool `protobuf:"varint,3,opt,name=no_window_bar,json=noWindowBar,proto3" json:"no_window_bar,omitempty"`
Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
// contains filtered or unexported fields
}
func (*FloatingWindowRequest) Descriptor
deprecated
func (*FloatingWindowRequest) Descriptor() ([]byte, []int)
Deprecated: Use FloatingWindowRequest.ProtoReflect.Descriptor instead.
func (*FloatingWindowRequest) GetAlignment ¶
func (x *FloatingWindowRequest) GetAlignment() uint32
func (*FloatingWindowRequest) GetNoWindowBar ¶ added in v0.0.102
func (x *FloatingWindowRequest) GetNoWindowBar() bool
func (*FloatingWindowRequest) GetOffset ¶
func (x *FloatingWindowRequest) GetOffset() *termrpc.Coordinates
func (*FloatingWindowRequest) GetTitle ¶ added in v0.0.102
func (x *FloatingWindowRequest) GetTitle() string
func (*FloatingWindowRequest) ProtoMessage ¶
func (*FloatingWindowRequest) ProtoMessage()
func (*FloatingWindowRequest) ProtoReflect ¶
func (x *FloatingWindowRequest) ProtoReflect() protoreflect.Message
func (*FloatingWindowRequest) Reset ¶
func (x *FloatingWindowRequest) Reset()
func (*FloatingWindowRequest) String ¶
func (x *FloatingWindowRequest) String() string
type FocusRequest ¶
type FocusRequest struct {
// contains filtered or unexported fields
}
func (*FocusRequest) Descriptor
deprecated
func (*FocusRequest) Descriptor() ([]byte, []int)
Deprecated: Use FocusRequest.ProtoReflect.Descriptor instead.
func (*FocusRequest) ProtoMessage ¶
func (*FocusRequest) ProtoMessage()
func (*FocusRequest) ProtoReflect ¶
func (x *FocusRequest) ProtoReflect() protoreflect.Message
func (*FocusRequest) Reset ¶
func (x *FocusRequest) Reset()
func (*FocusRequest) String ¶
func (x *FocusRequest) String() string
type FocusResponse ¶
type FocusResponse struct {
WindowId uint64 `protobuf:"varint,1,opt,name=window_id,json=windowId,proto3" json:"window_id,omitempty"`
// contains filtered or unexported fields
}
func (*FocusResponse) Descriptor
deprecated
func (*FocusResponse) Descriptor() ([]byte, []int)
Deprecated: Use FocusResponse.ProtoReflect.Descriptor instead.
func (*FocusResponse) GetWindowId ¶
func (x *FocusResponse) GetWindowId() uint64
func (*FocusResponse) ProtoMessage ¶
func (*FocusResponse) ProtoMessage()
func (*FocusResponse) ProtoReflect ¶
func (x *FocusResponse) ProtoReflect() protoreflect.Message
func (*FocusResponse) Reset ¶
func (x *FocusResponse) Reset()
func (*FocusResponse) String ¶
func (x *FocusResponse) String() string
type Mapping ¶
type Mapping struct {
From *termrpc.Event `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
To *termrpc.Event `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
// contains filtered or unexported fields
}
func (*Mapping) Descriptor
deprecated
func (*Mapping) ProtoMessage ¶
func (*Mapping) ProtoMessage()
func (*Mapping) ProtoReflect ¶
func (x *Mapping) ProtoReflect() protoreflect.Message
type NotificationsClient ¶
type NotificationsClient interface {
Notify(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (*NotifyResponse, error)
NotifyOnce(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (*NotifyResponse, error)
UpdateNotificationProgress(ctx context.Context, in *UpdateNotificationProgressRequest, opts ...grpc.CallOption) (*UpdateNotificationProgressResponse, error)
}
NotificationsClient is the client API for Notifications service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNotificationsClient ¶
func NewNotificationsClient(cc grpc.ClientConnInterface) NotificationsClient
type NotificationsServer ¶
type NotificationsServer interface {
Notify(context.Context, *NotifyRequest) (*NotifyResponse, error)
NotifyOnce(context.Context, *NotifyRequest) (*NotifyResponse, error)
UpdateNotificationProgress(context.Context, *UpdateNotificationProgressRequest) (*UpdateNotificationProgressResponse, error)
// contains filtered or unexported methods
}
NotificationsServer is the server API for Notifications service. All implementations must embed UnimplementedNotificationsServer for forward compatibility.
type NotifyRequest ¶
type NotifyRequest struct {
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
Level uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
// contains filtered or unexported fields
}
func (*NotifyRequest) Descriptor
deprecated
func (*NotifyRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotifyRequest.ProtoReflect.Descriptor instead.
func (*NotifyRequest) GetLevel ¶
func (x *NotifyRequest) GetLevel() uint32
func (*NotifyRequest) GetMsg ¶
func (x *NotifyRequest) GetMsg() string
func (*NotifyRequest) ProtoMessage ¶
func (*NotifyRequest) ProtoMessage()
func (*NotifyRequest) ProtoReflect ¶
func (x *NotifyRequest) ProtoReflect() protoreflect.Message
func (*NotifyRequest) Reset ¶
func (x *NotifyRequest) Reset()
func (*NotifyRequest) String ¶
func (x *NotifyRequest) String() string
type NotifyResponse ¶
type NotifyResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*NotifyResponse) Descriptor
deprecated
func (*NotifyResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotifyResponse.ProtoReflect.Descriptor instead.
func (*NotifyResponse) GetId ¶
func (x *NotifyResponse) GetId() string
func (*NotifyResponse) ProtoMessage ¶
func (*NotifyResponse) ProtoMessage()
func (*NotifyResponse) ProtoReflect ¶
func (x *NotifyResponse) ProtoReflect() protoreflect.Message
func (*NotifyResponse) Reset ¶
func (x *NotifyResponse) Reset()
func (*NotifyResponse) String ¶
func (x *NotifyResponse) String() string
type OpenResourceRequest ¶
type OpenResourceRequest struct {
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
// contains filtered or unexported fields
}
func (*OpenResourceRequest) Descriptor
deprecated
func (*OpenResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use OpenResourceRequest.ProtoReflect.Descriptor instead.
func (*OpenResourceRequest) GetResource ¶
func (x *OpenResourceRequest) GetResource() string
func (*OpenResourceRequest) ProtoMessage ¶
func (*OpenResourceRequest) ProtoMessage()
func (*OpenResourceRequest) ProtoReflect ¶
func (x *OpenResourceRequest) ProtoReflect() protoreflect.Message
func (*OpenResourceRequest) Reset ¶
func (x *OpenResourceRequest) Reset()
func (*OpenResourceRequest) String ¶
func (x *OpenResourceRequest) String() string
type OpenResourceResponse ¶
type OpenResourceResponse struct {
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}
func (*OpenResourceResponse) Descriptor
deprecated
func (*OpenResourceResponse) Descriptor() ([]byte, []int)
Deprecated: Use OpenResourceResponse.ProtoReflect.Descriptor instead.
func (*OpenResourceResponse) GetUri ¶
func (x *OpenResourceResponse) GetUri() string
func (*OpenResourceResponse) ProtoMessage ¶
func (*OpenResourceResponse) ProtoMessage()
func (*OpenResourceResponse) ProtoReflect ¶
func (x *OpenResourceResponse) ProtoReflect() protoreflect.Message
func (*OpenResourceResponse) Reset ¶
func (x *OpenResourceResponse) Reset()
func (*OpenResourceResponse) String ¶
func (x *OpenResourceResponse) String() string
type Orientation ¶
type Orientation int32
const ( Orientation_Default Orientation = 0 Orientation_Top Orientation = 1 Orientation_Bottom Orientation = 2 Orientation_Left Orientation = 3 Orientation_Right Orientation = 4 )
func (Orientation) Descriptor ¶
func (Orientation) Descriptor() protoreflect.EnumDescriptor
func (Orientation) Enum ¶
func (x Orientation) Enum() *Orientation
func (Orientation) EnumDescriptor
deprecated
func (Orientation) EnumDescriptor() ([]byte, []int)
Deprecated: Use Orientation.Descriptor instead.
func (Orientation) Number ¶
func (x Orientation) Number() protoreflect.EnumNumber
func (Orientation) String ¶
func (x Orientation) String() string
func (Orientation) Type ¶
func (Orientation) Type() protoreflect.EnumType
type PublishRequest ¶
type PublishRequest struct {
Ev *termrpc.Event `protobuf:"bytes,1,opt,name=ev,proto3" json:"ev,omitempty"`
// contains filtered or unexported fields
}
func (*PublishRequest) Descriptor
deprecated
func (*PublishRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishRequest.ProtoReflect.Descriptor instead.
func (*PublishRequest) GetEv ¶
func (x *PublishRequest) GetEv() *termrpc.Event
func (*PublishRequest) ProtoMessage ¶
func (*PublishRequest) ProtoMessage()
func (*PublishRequest) ProtoReflect ¶
func (x *PublishRequest) ProtoReflect() protoreflect.Message
func (*PublishRequest) Reset ¶
func (x *PublishRequest) Reset()
func (*PublishRequest) String ¶
func (x *PublishRequest) String() string
type PublishResponse ¶
type PublishResponse struct {
// contains filtered or unexported fields
}
func (*PublishResponse) Descriptor
deprecated
func (*PublishResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublishResponse.ProtoReflect.Descriptor instead.
func (*PublishResponse) ProtoMessage ¶
func (*PublishResponse) ProtoMessage()
func (*PublishResponse) ProtoReflect ¶
func (x *PublishResponse) ProtoReflect() protoreflect.Message
func (*PublishResponse) Reset ¶
func (x *PublishResponse) Reset()
func (*PublishResponse) String ¶
func (x *PublishResponse) String() string
type ResourceOpenerClient ¶
type ResourceOpenerClient interface {
Open(ctx context.Context, in *OpenResourceRequest, opts ...grpc.CallOption) (*OpenResourceResponse, error)
}
ResourceOpenerClient is the client API for ResourceOpener service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewResourceOpenerClient ¶
func NewResourceOpenerClient(cc grpc.ClientConnInterface) ResourceOpenerClient
type ResourceOpenerServer ¶
type ResourceOpenerServer interface {
Open(context.Context, *OpenResourceRequest) (*OpenResourceResponse, error)
// contains filtered or unexported methods
}
ResourceOpenerServer is the server API for ResourceOpener service. All implementations must embed UnimplementedResourceOpenerServer for forward compatibility.
type SplitRequest ¶
type SplitRequest struct {
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
Orientation Orientation `protobuf:"varint,2,opt,name=orientation,proto3,enum=browser.Orientation" json:"orientation,omitempty"`
WindowId uint64 `protobuf:"varint,3,opt,name=window_id,json=windowId,proto3" json:"window_id,omitempty"`
// contains filtered or unexported fields
}
func (*SplitRequest) Descriptor
deprecated
func (*SplitRequest) Descriptor() ([]byte, []int)
Deprecated: Use SplitRequest.ProtoReflect.Descriptor instead.
func (*SplitRequest) GetOrientation ¶
func (x *SplitRequest) GetOrientation() Orientation
func (*SplitRequest) GetUri ¶
func (x *SplitRequest) GetUri() string
func (*SplitRequest) GetWindowId ¶
func (x *SplitRequest) GetWindowId() uint64
func (*SplitRequest) ProtoMessage ¶
func (*SplitRequest) ProtoMessage()
func (*SplitRequest) ProtoReflect ¶
func (x *SplitRequest) ProtoReflect() protoreflect.Message
func (*SplitRequest) Reset ¶
func (x *SplitRequest) Reset()
func (*SplitRequest) String ¶
func (x *SplitRequest) String() string
type SplitWindowMessage ¶
type SplitWindowMessage struct {
Type handlerrpc.MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=handler.MessageType" json:"type,omitempty"`
Draw *handlerrpc.DrawStreamResponse `protobuf:"bytes,2,opt,name=draw,proto3" json:"draw,omitempty"`
Handle *handlerrpc.HandleStreamResponse `protobuf:"bytes,3,opt,name=handle,proto3" json:"handle,omitempty"`
Close *handlerrpc.CloseStreamResponse `protobuf:"bytes,5,opt,name=close,proto3" json:"close,omitempty"`
Cursor *handlerrpc.CursorStreamResponse `protobuf:"bytes,6,opt,name=cursor,proto3" json:"cursor,omitempty"`
Selection *handlerrpc.SelectionStreamResponse `protobuf:"bytes,7,opt,name=selection,proto3" json:"selection,omitempty"`
Dimensions *handlerrpc.DimensionsStreamResponse `protobuf:"bytes,8,opt,name=dimensions,proto3" json:"dimensions,omitempty"`
Request *SplitRequest `protobuf:"bytes,10,opt,name=request,proto3" json:"request,omitempty"`
// contains filtered or unexported fields
}
func (*SplitWindowMessage) Descriptor
deprecated
func (*SplitWindowMessage) Descriptor() ([]byte, []int)
Deprecated: Use SplitWindowMessage.ProtoReflect.Descriptor instead.
func (*SplitWindowMessage) GetClose ¶
func (x *SplitWindowMessage) GetClose() *handlerrpc.CloseStreamResponse
func (*SplitWindowMessage) GetCursor ¶
func (x *SplitWindowMessage) GetCursor() *handlerrpc.CursorStreamResponse
func (*SplitWindowMessage) GetDimensions ¶
func (x *SplitWindowMessage) GetDimensions() *handlerrpc.DimensionsStreamResponse
func (*SplitWindowMessage) GetDraw ¶
func (x *SplitWindowMessage) GetDraw() *handlerrpc.DrawStreamResponse
func (*SplitWindowMessage) GetHandle ¶
func (x *SplitWindowMessage) GetHandle() *handlerrpc.HandleStreamResponse
func (*SplitWindowMessage) GetRequest ¶
func (x *SplitWindowMessage) GetRequest() *SplitRequest
func (*SplitWindowMessage) GetSelection ¶
func (x *SplitWindowMessage) GetSelection() *handlerrpc.SelectionStreamResponse
func (*SplitWindowMessage) GetType ¶
func (x *SplitWindowMessage) GetType() handlerrpc.MessageType
func (*SplitWindowMessage) ProtoMessage ¶
func (*SplitWindowMessage) ProtoMessage()
func (*SplitWindowMessage) ProtoReflect ¶
func (x *SplitWindowMessage) ProtoReflect() protoreflect.Message
func (*SplitWindowMessage) Reset ¶
func (x *SplitWindowMessage) Reset()
func (*SplitWindowMessage) SetClose ¶
func (m *SplitWindowMessage) SetClose(r *handlerrpc.CloseStreamResponse)
SetClose satisfies handlerrpc.StreamMessage.
func (*SplitWindowMessage) SetCursor ¶
func (m *SplitWindowMessage) SetCursor(r *handlerrpc.CursorStreamResponse)
SetCursor satisfies handlerrpc.StreamMessage.
func (*SplitWindowMessage) SetDimensions ¶
func (m *SplitWindowMessage) SetDimensions(r *handlerrpc.DimensionsStreamResponse)
SetDimensions satisfies handlerrpc.StreamMessage.
func (*SplitWindowMessage) SetDraw ¶
func (m *SplitWindowMessage) SetDraw(r *handlerrpc.DrawStreamResponse)
SetDraw satisfies handlerrpc.StreamMessage.
func (*SplitWindowMessage) SetHandle ¶
func (m *SplitWindowMessage) SetHandle(r *handlerrpc.HandleStreamResponse)
SetHandle satisfies handlerrpc.StreamMessage.
func (*SplitWindowMessage) SetSelection ¶
func (m *SplitWindowMessage) SetSelection(r *handlerrpc.SelectionStreamResponse)
SetSelection satisfies handlerrpc.StreamMessage.
func (*SplitWindowMessage) String ¶
func (x *SplitWindowMessage) String() string
type TabMessage ¶
type TabMessage struct {
Type handlerrpc.MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=handler.MessageType" json:"type,omitempty"`
Draw *handlerrpc.DrawStreamResponse `protobuf:"bytes,2,opt,name=draw,proto3" json:"draw,omitempty"`
Handle *handlerrpc.HandleStreamResponse `protobuf:"bytes,3,opt,name=handle,proto3" json:"handle,omitempty"`
Close *handlerrpc.CloseStreamResponse `protobuf:"bytes,5,opt,name=close,proto3" json:"close,omitempty"`
Cursor *handlerrpc.CursorStreamResponse `protobuf:"bytes,6,opt,name=cursor,proto3" json:"cursor,omitempty"`
Selection *handlerrpc.SelectionStreamResponse `protobuf:"bytes,7,opt,name=selection,proto3" json:"selection,omitempty"`
Dimensions *handlerrpc.DimensionsStreamResponse `protobuf:"bytes,8,opt,name=dimensions,proto3" json:"dimensions,omitempty"`
Request *TabRequest `protobuf:"bytes,10,opt,name=request,proto3" json:"request,omitempty"`
// contains filtered or unexported fields
}
func (*TabMessage) Descriptor
deprecated
func (*TabMessage) Descriptor() ([]byte, []int)
Deprecated: Use TabMessage.ProtoReflect.Descriptor instead.
func (*TabMessage) GetClose ¶
func (x *TabMessage) GetClose() *handlerrpc.CloseStreamResponse
func (*TabMessage) GetCursor ¶
func (x *TabMessage) GetCursor() *handlerrpc.CursorStreamResponse
func (*TabMessage) GetDimensions ¶
func (x *TabMessage) GetDimensions() *handlerrpc.DimensionsStreamResponse
func (*TabMessage) GetDraw ¶
func (x *TabMessage) GetDraw() *handlerrpc.DrawStreamResponse
func (*TabMessage) GetHandle ¶
func (x *TabMessage) GetHandle() *handlerrpc.HandleStreamResponse
func (*TabMessage) GetRequest ¶
func (x *TabMessage) GetRequest() *TabRequest
func (*TabMessage) GetSelection ¶
func (x *TabMessage) GetSelection() *handlerrpc.SelectionStreamResponse
func (*TabMessage) GetType ¶
func (x *TabMessage) GetType() handlerrpc.MessageType
func (*TabMessage) ProtoMessage ¶
func (*TabMessage) ProtoMessage()
func (*TabMessage) ProtoReflect ¶
func (x *TabMessage) ProtoReflect() protoreflect.Message
func (*TabMessage) Reset ¶
func (x *TabMessage) Reset()
func (*TabMessage) SetClose ¶
func (m *TabMessage) SetClose(r *handlerrpc.CloseStreamResponse)
SetClose satisfies handlerrpc.StreamMessage.
func (*TabMessage) SetCursor ¶
func (m *TabMessage) SetCursor(r *handlerrpc.CursorStreamResponse)
SetCursor satisfies handlerrpc.StreamMessage.
func (*TabMessage) SetDimensions ¶
func (m *TabMessage) SetDimensions(r *handlerrpc.DimensionsStreamResponse)
SetDimensions satisfies handlerrpc.StreamMessage.
func (*TabMessage) SetDraw ¶
func (m *TabMessage) SetDraw(r *handlerrpc.DrawStreamResponse)
SetDraw satisfies handlerrpc.StreamMessage.
func (*TabMessage) SetHandle ¶
func (m *TabMessage) SetHandle(r *handlerrpc.HandleStreamResponse)
SetHandle satisfies handlerrpc.StreamMessage.
func (*TabMessage) SetSelection ¶
func (m *TabMessage) SetSelection(r *handlerrpc.SelectionStreamResponse)
SetSelection satisfies handlerrpc.StreamMessage.
func (*TabMessage) String ¶
func (x *TabMessage) String() string
type TabRequest ¶
type TabRequest struct {
ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
ResourceIcon string `protobuf:"bytes,3,opt,name=resource_icon,json=resourceIcon,proto3" json:"resource_icon,omitempty"`
// contains filtered or unexported fields
}
func (*TabRequest) Descriptor
deprecated
func (*TabRequest) Descriptor() ([]byte, []int)
Deprecated: Use TabRequest.ProtoReflect.Descriptor instead.
func (*TabRequest) GetResourceIcon ¶
func (x *TabRequest) GetResourceIcon() string
func (*TabRequest) GetResourceId ¶
func (x *TabRequest) GetResourceId() string
func (*TabRequest) GetResourceName ¶
func (x *TabRequest) GetResourceName() string
func (*TabRequest) ProtoMessage ¶
func (*TabRequest) ProtoMessage()
func (*TabRequest) ProtoReflect ¶
func (x *TabRequest) ProtoReflect() protoreflect.Message
func (*TabRequest) Reset ¶
func (x *TabRequest) Reset()
func (*TabRequest) String ¶
func (x *TabRequest) String() string
type Token ¶
type Token struct {
URI string
}
Token is a handler used to indicate which of the remote handlers to set as content to a remote server. It satisfies tui.Handler so that clients can take the result of an browser.Open type of requests and pass it to Split* or SetContent type of responses.
func (Token) Cursor ¶
func (h Token) Cursor() (term.Coordinates, term.CursorStyle, bool)
Cursor panics if called. This tui.Handler implementation is symbolic.
func (Token) Dimensions ¶
Dimensions panics if called. This tui.Handler implementation is symbolic.
type UnimplementedEventPublisherServer ¶
type UnimplementedEventPublisherServer struct{}
UnimplementedEventPublisherServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedEventPublisherServer) Publish ¶
func (UnimplementedEventPublisherServer) Publish(context.Context, *PublishRequest) (*PublishResponse, error)
type UnimplementedFloatingServer ¶
type UnimplementedFloatingServer struct{}
UnimplementedFloatingServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedFloatingServer) Dimensions ¶
func (UnimplementedFloatingServer) Dimensions(context.Context, *DimensionsRequest) (*DimensionsResponse, error)
type UnimplementedNotificationsServer ¶
type UnimplementedNotificationsServer struct{}
UnimplementedNotificationsServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedNotificationsServer) Notify ¶
func (UnimplementedNotificationsServer) Notify(context.Context, *NotifyRequest) (*NotifyResponse, error)
func (UnimplementedNotificationsServer) NotifyOnce ¶
func (UnimplementedNotificationsServer) NotifyOnce(context.Context, *NotifyRequest) (*NotifyResponse, error)
func (UnimplementedNotificationsServer) UpdateNotificationProgress ¶
func (UnimplementedNotificationsServer) UpdateNotificationProgress(context.Context, *UpdateNotificationProgressRequest) (*UpdateNotificationProgressResponse, error)
type UnimplementedResourceOpenerServer ¶
type UnimplementedResourceOpenerServer struct{}
UnimplementedResourceOpenerServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedResourceOpenerServer) Open ¶
func (UnimplementedResourceOpenerServer) Open(context.Context, *OpenResourceRequest) (*OpenResourceResponse, error)
type UnimplementedWindowManagerServer ¶
type UnimplementedWindowManagerServer struct{}
UnimplementedWindowManagerServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedWindowManagerServer) CloseWindow ¶
func (UnimplementedWindowManagerServer) CloseWindow(context.Context, *WindowCloseRequest) (*WindowCloseResponse, error)
func (UnimplementedWindowManagerServer) Focus ¶
func (UnimplementedWindowManagerServer) Focus(context.Context, *FocusRequest) (*FocusResponse, error)
func (UnimplementedWindowManagerServer) SetContent ¶
func (UnimplementedWindowManagerServer) SetContent(grpc.BidiStreamingServer[WindowSetContentMessage, handlerrpc.ServerMessage]) error
type UnsafeEventPublisherServer ¶
type UnsafeEventPublisherServer interface {
// contains filtered or unexported methods
}
UnsafeEventPublisherServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventPublisherServer will result in compilation errors.
type UnsafeFloatingServer ¶
type UnsafeFloatingServer interface {
// contains filtered or unexported methods
}
UnsafeFloatingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FloatingServer will result in compilation errors.
type UnsafeNotificationsServer ¶
type UnsafeNotificationsServer interface {
// contains filtered or unexported methods
}
UnsafeNotificationsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotificationsServer will result in compilation errors.
type UnsafeResourceOpenerServer ¶
type UnsafeResourceOpenerServer interface {
// contains filtered or unexported methods
}
UnsafeResourceOpenerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceOpenerServer will result in compilation errors.
type UnsafeWindowManagerServer ¶
type UnsafeWindowManagerServer interface {
// contains filtered or unexported methods
}
UnsafeWindowManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WindowManagerServer will result in compilation errors.
type UpdateNotificationProgressRequest ¶
type UpdateNotificationProgressRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Progress int64 `protobuf:"varint,3,opt,name=progress,proto3" json:"progress,omitempty"`
Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateNotificationProgressRequest) Descriptor
deprecated
func (*UpdateNotificationProgressRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNotificationProgressRequest.ProtoReflect.Descriptor instead.
func (*UpdateNotificationProgressRequest) GetId ¶
func (x *UpdateNotificationProgressRequest) GetId() string
func (*UpdateNotificationProgressRequest) GetMsg ¶
func (x *UpdateNotificationProgressRequest) GetMsg() string
func (*UpdateNotificationProgressRequest) GetProgress ¶
func (x *UpdateNotificationProgressRequest) GetProgress() int64
func (*UpdateNotificationProgressRequest) GetTotal ¶
func (x *UpdateNotificationProgressRequest) GetTotal() int64
func (*UpdateNotificationProgressRequest) ProtoMessage ¶
func (*UpdateNotificationProgressRequest) ProtoMessage()
func (*UpdateNotificationProgressRequest) ProtoReflect ¶
func (x *UpdateNotificationProgressRequest) ProtoReflect() protoreflect.Message
func (*UpdateNotificationProgressRequest) Reset ¶
func (x *UpdateNotificationProgressRequest) Reset()
func (*UpdateNotificationProgressRequest) String ¶
func (x *UpdateNotificationProgressRequest) String() string
type UpdateNotificationProgressResponse ¶
type UpdateNotificationProgressResponse struct {
// contains filtered or unexported fields
}
func (*UpdateNotificationProgressResponse) Descriptor
deprecated
func (*UpdateNotificationProgressResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNotificationProgressResponse.ProtoReflect.Descriptor instead.
func (*UpdateNotificationProgressResponse) ProtoMessage ¶
func (*UpdateNotificationProgressResponse) ProtoMessage()
func (*UpdateNotificationProgressResponse) ProtoReflect ¶
func (x *UpdateNotificationProgressResponse) ProtoReflect() protoreflect.Message
func (*UpdateNotificationProgressResponse) Reset ¶
func (x *UpdateNotificationProgressResponse) Reset()
func (*UpdateNotificationProgressResponse) String ¶
func (x *UpdateNotificationProgressResponse) String() string
type WindowCloseRequest ¶
type WindowCloseRequest struct {
WindowId uint64 `protobuf:"varint,1,opt,name=window_id,json=windowId,proto3" json:"window_id,omitempty"`
// contains filtered or unexported fields
}
func (*WindowCloseRequest) Descriptor
deprecated
func (*WindowCloseRequest) Descriptor() ([]byte, []int)
Deprecated: Use WindowCloseRequest.ProtoReflect.Descriptor instead.
func (*WindowCloseRequest) GetWindowId ¶
func (x *WindowCloseRequest) GetWindowId() uint64
func (*WindowCloseRequest) ProtoMessage ¶
func (*WindowCloseRequest) ProtoMessage()
func (*WindowCloseRequest) ProtoReflect ¶
func (x *WindowCloseRequest) ProtoReflect() protoreflect.Message
func (*WindowCloseRequest) Reset ¶
func (x *WindowCloseRequest) Reset()
func (*WindowCloseRequest) String ¶
func (x *WindowCloseRequest) String() string
type WindowCloseResponse ¶
type WindowCloseResponse struct {
// contains filtered or unexported fields
}
func (*WindowCloseResponse) Descriptor
deprecated
func (*WindowCloseResponse) Descriptor() ([]byte, []int)
Deprecated: Use WindowCloseResponse.ProtoReflect.Descriptor instead.
func (*WindowCloseResponse) ProtoMessage ¶
func (*WindowCloseResponse) ProtoMessage()
func (*WindowCloseResponse) ProtoReflect ¶
func (x *WindowCloseResponse) ProtoReflect() protoreflect.Message
func (*WindowCloseResponse) Reset ¶
func (x *WindowCloseResponse) Reset()
func (*WindowCloseResponse) String ¶
func (x *WindowCloseResponse) String() string
type WindowManagerClient ¶
type WindowManagerClient interface {
Focus(ctx context.Context, in *FocusRequest, opts ...grpc.CallOption) (*FocusResponse, error)
Split(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[SplitWindowMessage, handlerrpc.ServerMessage], error)
Bar(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[BarMessage, handlerrpc.ServerMessage], error)
Floating(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[FloatingWindowMessage, handlerrpc.ServerMessage], error)
Tab(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[TabMessage, handlerrpc.ServerMessage], error)
SetContent(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[WindowSetContentMessage, handlerrpc.ServerMessage], error)
CloseWindow(ctx context.Context, in *WindowCloseRequest, opts ...grpc.CallOption) (*WindowCloseResponse, error)
}
WindowManagerClient is the client API for WindowManager service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWindowManagerClient ¶
func NewWindowManagerClient(cc grpc.ClientConnInterface) WindowManagerClient
type WindowManagerServer ¶
type WindowManagerServer interface {
Focus(context.Context, *FocusRequest) (*FocusResponse, error)
Split(grpc.BidiStreamingServer[SplitWindowMessage, handlerrpc.ServerMessage]) error
Bar(grpc.BidiStreamingServer[BarMessage, handlerrpc.ServerMessage]) error
Floating(grpc.BidiStreamingServer[FloatingWindowMessage, handlerrpc.ServerMessage]) error
Tab(grpc.BidiStreamingServer[TabMessage, handlerrpc.ServerMessage]) error
SetContent(grpc.BidiStreamingServer[WindowSetContentMessage, handlerrpc.ServerMessage]) error
CloseWindow(context.Context, *WindowCloseRequest) (*WindowCloseResponse, error)
// contains filtered or unexported methods
}
WindowManagerServer is the server API for WindowManager service. All implementations must embed UnimplementedWindowManagerServer for forward compatibility.
type WindowManager_BarClient ¶
type WindowManager_BarClient = grpc.BidiStreamingClient[BarMessage, handlerrpc.ServerMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WindowManager_BarServer ¶
type WindowManager_BarServer = grpc.BidiStreamingServer[BarMessage, handlerrpc.ServerMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WindowManager_FloatingClient ¶
type WindowManager_FloatingClient = grpc.BidiStreamingClient[FloatingWindowMessage, handlerrpc.ServerMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WindowManager_FloatingServer ¶
type WindowManager_FloatingServer = grpc.BidiStreamingServer[FloatingWindowMessage, handlerrpc.ServerMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WindowManager_SetContentClient ¶
type WindowManager_SetContentClient = grpc.BidiStreamingClient[WindowSetContentMessage, handlerrpc.ServerMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WindowManager_SetContentServer ¶
type WindowManager_SetContentServer = grpc.BidiStreamingServer[WindowSetContentMessage, handlerrpc.ServerMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WindowManager_SplitClient ¶
type WindowManager_SplitClient = grpc.BidiStreamingClient[SplitWindowMessage, handlerrpc.ServerMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WindowManager_SplitServer ¶
type WindowManager_SplitServer = grpc.BidiStreamingServer[SplitWindowMessage, handlerrpc.ServerMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WindowManager_TabClient ¶
type WindowManager_TabClient = grpc.BidiStreamingClient[TabMessage, handlerrpc.ServerMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WindowManager_TabServer ¶
type WindowManager_TabServer = grpc.BidiStreamingServer[TabMessage, handlerrpc.ServerMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WindowSetContentMessage ¶
type WindowSetContentMessage struct {
Type handlerrpc.MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=handler.MessageType" json:"type,omitempty"`
Draw *handlerrpc.DrawStreamResponse `protobuf:"bytes,2,opt,name=draw,proto3" json:"draw,omitempty"`
Handle *handlerrpc.HandleStreamResponse `protobuf:"bytes,3,opt,name=handle,proto3" json:"handle,omitempty"`
Close *handlerrpc.CloseStreamResponse `protobuf:"bytes,5,opt,name=close,proto3" json:"close,omitempty"`
Cursor *handlerrpc.CursorStreamResponse `protobuf:"bytes,6,opt,name=cursor,proto3" json:"cursor,omitempty"`
Selection *handlerrpc.SelectionStreamResponse `protobuf:"bytes,7,opt,name=selection,proto3" json:"selection,omitempty"`
Dimensions *handlerrpc.DimensionsStreamResponse `protobuf:"bytes,8,opt,name=dimensions,proto3" json:"dimensions,omitempty"`
Request *WindowSetContentRequest `protobuf:"bytes,10,opt,name=request,proto3" json:"request,omitempty"`
// contains filtered or unexported fields
}
func (*WindowSetContentMessage) Descriptor
deprecated
func (*WindowSetContentMessage) Descriptor() ([]byte, []int)
Deprecated: Use WindowSetContentMessage.ProtoReflect.Descriptor instead.
func (*WindowSetContentMessage) GetClose ¶
func (x *WindowSetContentMessage) GetClose() *handlerrpc.CloseStreamResponse
func (*WindowSetContentMessage) GetCursor ¶
func (x *WindowSetContentMessage) GetCursor() *handlerrpc.CursorStreamResponse
func (*WindowSetContentMessage) GetDimensions ¶
func (x *WindowSetContentMessage) GetDimensions() *handlerrpc.DimensionsStreamResponse
func (*WindowSetContentMessage) GetDraw ¶
func (x *WindowSetContentMessage) GetDraw() *handlerrpc.DrawStreamResponse
func (*WindowSetContentMessage) GetHandle ¶
func (x *WindowSetContentMessage) GetHandle() *handlerrpc.HandleStreamResponse
func (*WindowSetContentMessage) GetRequest ¶
func (x *WindowSetContentMessage) GetRequest() *WindowSetContentRequest
func (*WindowSetContentMessage) GetSelection ¶
func (x *WindowSetContentMessage) GetSelection() *handlerrpc.SelectionStreamResponse
func (*WindowSetContentMessage) GetType ¶
func (x *WindowSetContentMessage) GetType() handlerrpc.MessageType
func (*WindowSetContentMessage) ProtoMessage ¶
func (*WindowSetContentMessage) ProtoMessage()
func (*WindowSetContentMessage) ProtoReflect ¶
func (x *WindowSetContentMessage) ProtoReflect() protoreflect.Message
func (*WindowSetContentMessage) Reset ¶
func (x *WindowSetContentMessage) Reset()
func (*WindowSetContentMessage) SetClose ¶
func (m *WindowSetContentMessage) SetClose(r *handlerrpc.CloseStreamResponse)
SetClose satisfies handlerrpc.StreamMessage.
func (*WindowSetContentMessage) SetCursor ¶
func (m *WindowSetContentMessage) SetCursor(r *handlerrpc.CursorStreamResponse)
SetCursor satisfies handlerrpc.StreamMessage.
func (*WindowSetContentMessage) SetDimensions ¶
func (m *WindowSetContentMessage) SetDimensions(r *handlerrpc.DimensionsStreamResponse)
SetDimensions satisfies handlerrpc.StreamMessage.
func (*WindowSetContentMessage) SetDraw ¶
func (m *WindowSetContentMessage) SetDraw(r *handlerrpc.DrawStreamResponse)
SetDraw satisfies handlerrpc.StreamMessage.
func (*WindowSetContentMessage) SetHandle ¶
func (m *WindowSetContentMessage) SetHandle(r *handlerrpc.HandleStreamResponse)
SetHandle satisfies handlerrpc.StreamMessage.
func (*WindowSetContentMessage) SetSelection ¶
func (m *WindowSetContentMessage) SetSelection(r *handlerrpc.SelectionStreamResponse)
SetSelection satisfies handlerrpc.StreamMessage.
func (*WindowSetContentMessage) String ¶
func (x *WindowSetContentMessage) String() string
type WindowSetContentRequest ¶
type WindowSetContentRequest struct {
WindowId uint64 `protobuf:"varint,1,opt,name=window_id,json=windowId,proto3" json:"window_id,omitempty"`
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// contains filtered or unexported fields
}
func (*WindowSetContentRequest) Descriptor
deprecated
func (*WindowSetContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use WindowSetContentRequest.ProtoReflect.Descriptor instead.
func (*WindowSetContentRequest) GetUri ¶
func (x *WindowSetContentRequest) GetUri() string
func (*WindowSetContentRequest) GetWindowId ¶
func (x *WindowSetContentRequest) GetWindowId() uint64
func (*WindowSetContentRequest) ProtoMessage ¶
func (*WindowSetContentRequest) ProtoMessage()
func (*WindowSetContentRequest) ProtoReflect ¶
func (x *WindowSetContentRequest) ProtoReflect() protoreflect.Message
func (*WindowSetContentRequest) Reset ¶
func (x *WindowSetContentRequest) Reset()
func (*WindowSetContentRequest) String ¶
func (x *WindowSetContentRequest) String() string