Versions in this module Expand all Collapse all v0 v0.3.0 Oct 29, 2026 Changes in this version + const ClientConnected + const ClientLost + const ProcessMethod type Client + func (c *Client) AttachAll(ctx context.Context, scope EventScope) ([]SessionInfo, error) + func (c *Client) BlockProcess(ctx context.Context, sessionID, blockID string) (ProcessResult, error) + func (c *Client) ConfigReload(ctx context.Context) (ConfigReloadResult, error) + func (c *Client) CreateSession(ctx context.Context, a CreateSessionArgs) (CreateSessionResult, error) + func (c *Client) DestroySession(ctx context.Context, sessionID string) error + func (c *Client) FocusWindow(ctx context.Context, sessionID, windowID string) (int64, error) + func (c *Client) ListClients(ctx context.Context, sessionID string, kinds ...string) ([]ClientEntry, error) + func (c *Client) Perform(ctx context.Context, a PerformArgs) (PerformResult, error) + func (c *Client) SetWindowLabel(ctx context.Context, sessionID, windowID, label string) (int64, error) + type ClientEntry struct + ClientID string + ConnectedAt string + ConnectionState string + Info ClientInfo + Principal ClientPrincipal + SessionIDs []string + func (e ClientEntry) Lost() bool + type ClientInfo struct + Kind string + Label string + Name string + Platform string + Version string + type ClientPrincipal struct + Display string + Kind string + PID int + Transport string + UID *int + type ConfigReloadResult struct + Diagnostics []Diagnostic + Generation int + type CreateSessionArgs struct + Cwd string + Label string + WindowLabel string + type CreateSessionResult struct + InitialWindows []NewWindowResult + SessionID string + func (r CreateSessionResult) FirstBlockID() string + func (r CreateSessionResult) FirstWindowID() string + type Diagnostic struct + Action string + Key string + Message string + Mode string + Severity string + Source string + type EventScope string + const ScopeAll + const ScopeSession + type PerformArgs struct + Action string + Args any + BlockID string + ClientID string + Origin string + SessionID string + TimeoutMS int + type PerformResult struct + PerformedBy string + Result json.RawMessage + type ProcessExit struct + Error string + ExitCode int + type ProcessInfo struct + Argv0 string + Cwd string + InvokedPath string + Name string + PID int + Path string + Script string + User string + UserID int + type ProcessResult struct + Ancestors []ProcessInfo + Child *ProcessInfo + Foreground *ProcessInfo + Home string + LastExit *ProcessExit v0.2.0 Oct 29, 2026 v0.1.0 Oct 29, 2026 Changes in this version + const APIRevision + const After + const Before + const ControlPath + const DefaultEventBuffer + const DefaultHandshakeTimeout + const DefaultPingInterval + const DefaultSocketPath + const DefaultWriteTimeout + const Detached + const Horizontal + const LayerFloating + const LayerTiled + const MinAPIRevision + const Placed + const Subprotocol + const TerminalFlavor + const Vertical + var ErrBadRequest error = &codeSentinel + var ErrClientUnavailable error = &codeSentinel + var ErrClosed = errors.New("rexuikit/client: connection closed") + var ErrConflict error = &codeSentinel + var ErrEventGap = errors.New("rexuikit/client: event seq out of order") + var ErrEventOverflow = errors.New("rexuikit/client: event buffer full (Events not drained); connection closed") + var ErrInternal error = &codeSentinel + var ErrKeepalive = errors.New("rexuikit/client: server stopped answering pings") + var ErrMethodNotFound error = &codeSentinel + var ErrNotFound error = &codeSentinel + var ErrNotSupported error = &codeSentinel + var ErrRefused error = &codeSentinel + var ErrRevisionTooLow error = &codeSentinel + var ErrSessionNotFound error = &codeSentinel + var ErrTimeout error = &codeSentinel + var ErrTooLarge error = &codeSentinel + func ServerAddr(getenv func(string) string) (string, error) + func SocketPath(addr string) (string, error) + type Attachment struct + ClientID string + Seq int64 + View View + type BlockEvent struct + BlockID string + CreatorName string + Name string + Payload json.RawMessage + SessionID string + type BlockInfo struct + BlockID string + CreatorName string + Flavor string + HostID string + Label string + Owner string + Placement string + WindowID string + type BlockSpec struct + Flavor string + Label string + Options any + type Bounds [4]float64 + type CarrierInfo struct + ALPN []string + Carrier string + Port int + type Client struct + func Dial(ctx context.Context, opts Options) (*Client, error) + func (c *Client) APIRevision() int + func (c *Client) Attach(ctx context.Context, sessionID string) (Attachment, error) + func (c *Client) BlockMethod(ctx context.Context, sessionID, blockID, method string, args, out any) error + func (c *Client) Call(ctx context.Context, method string, payload, out any) error + func (c *Client) CallSeq(ctx context.Context, method string, payload, out any) (int64, error) + func (c *Client) ClientID() string + func (c *Client) Close() error + func (c *Client) CloseBlock(ctx context.Context, sessionID, blockID string) (int64, error) + func (c *Client) CloseLayer(ctx context.Context, sessionID, layerID string) (int64, error) + func (c *Client) CloseWindow(ctx context.Context, sessionID, windowID string) (int64, error) + func (c *Client) Detach(ctx context.Context, sessionID string) error + func (c *Client) Done() <-chan struct{} + func (c *Client) Err() error + func (c *Client) Events() <-chan Event + func (c *Client) FocusBlock(ctx context.Context, sessionID, blockID string) (int64, error) + func (c *Client) ListBlocks(ctx context.Context, sessionID string) ([]BlockInfo, error) + func (c *Client) ListSessions(ctx context.Context) ([]SessionInfo, error) + func (c *Client) MoveBlock(ctx context.Context, a MoveBlockArgs) (MoveBlockResult, error) + func (c *Client) NewBlock(ctx context.Context, a NewBlockArgs) (string, error) + func (c *Client) NewLayer(ctx context.Context, a NewLayerArgs) (NewLayerResult, error) + func (c *Client) NewSplit(ctx context.Context, a NewSplitArgs) (NewSplitResult, error) + func (c *Client) NewWindow(ctx context.Context, a NewWindowArgs) (NewWindowResult, error) + func (c *Client) RaiseLayer(ctx context.Context, sessionID, layerID, relativeLayerID string) (int64, error) + func (c *Client) ReconnectToken() string + func (c *Client) ResizeLayer(ctx context.Context, sessionID, layerID string, b Bounds) (int64, error) + func (c *Client) ServerVersion(ctx context.Context) (Version, error) + func (c *Client) SetBlockLabel(ctx context.Context, sessionID, blockID, label string) (int64, error) + func (c *Client) TerminalSize(ctx context.Context, sessionID, blockID string) (TerminalSize, error) + func (c *Client) View(ctx context.Context, sessionID string) (View, error) + func (c *Client) Welcome() Welcome + type DesiredSize struct + ClientID string + Columns int + Rows int + UpdatedAt string + type Error struct + Code string + Message string + Method string + Status int + func (e *Error) Error() string + func (e *Error) Is(target error) bool + type Event struct + Payload json.RawMessage + Seq int64 + Type string + func (e Event) Block() (be BlockEvent, ok bool, err error) + func (e Event) Session() (se SessionEvent, ok bool, err error) + type Layer struct + Blocks []ViewBlock + Bounds Bounds + Kind string + LayerID string + Layout *LayoutNode + type Layout struct + Block *BlockSpec + Split *SplitSpec + func BlockLayout(flavor, label string, options any) Layout + type LayoutNode struct + BlockID string + Rect Bounds + Split *ViewSplit + type Limits struct + MaxMessageBytes int + type MoveBlockArgs struct + AnchorBlockID string + BlockID string + Direction string + Ratio float64 + SessionID string + Side string + type MoveBlockResult struct + CreatedSplitID string + RemovedSplitID string + Revision int64 + type NewBlockArgs struct + Flavor string + Label string + Options any + SessionID string + type NewLayerArgs struct + Bounds Bounds + Focus bool + Layout Layout + SessionID string + WindowID string + type NewLayerResult struct + BlockIDs []string + LayerID string + Revision int64 + type NewSplitArgs struct + AnchorID string + Direction string + Focus bool + Layout Layout + Ratio float64 + SessionID string + Side string + WindowID string + type NewSplitResult struct + AnchorID string + BlockIDs []string + Revision int64 + SplitIDs []string + type NewWindowArgs struct + Focus *bool + Label string + Layout Layout + SessionID string + type NewWindowResult struct + BlockIDs []string + Revision int64 + WindowID string + type Options struct + Addr string + DisableEvents bool + EventBuffer int + Getenv func(string) string + HTTPClient *http.Client + HandshakeTimeout time.Duration + Name string + PingInterval time.Duration + Version string + type SessionEvent struct + Payload json.RawMessage + SessionID string + Type string + type SessionInfo struct + Label string + SessionID string + type Size struct + Columns int + Rows int + type SplitSpec struct + After Layout + Before Layout + Direction string + Ratio float64 + type TerminalOptions struct + Command []string + Cwd string + Shell string + Size *Size + type TerminalSize struct + CellHeightPx int + CellWidthPx int + Columns int + Desired []DesiredSize + Owner string + Rows int + type Version struct + APIMinRevision int + APIRevision int + BuiltAt string + Commit string + Dirty bool + Platform string + RexVersion string + type View struct + ActiveWindowID string + Label string + Revision int64 + SessionID string + Windows []Window + type ViewBlock struct + BlockID string + CreatorName string + Flavor string + HostID string + Label string + Owner string + type ViewSplit struct + After LayoutNode + Before LayoutNode + Direction string + Ratio float64 + SplitID string + type Welcome struct + APIMinRevision int + APIRevision int + APIServerRevision int + Carriers []CarrierInfo + Client *WelcomeInfo + Features []string + Limits Limits + Protocol string + type WelcomeInfo struct + ID string + ReconnectToken string + Resumed bool + type Window struct + FocusedBlockID string + Label string + Layers []Layer + WindowID string + ZoomedBlockID string