Documentation
¶
Overview ¶
Package sessionaccess bridges root runtime details to packages inside the module. It is unavailable to external modules by Go's internal-package rules.
Index ¶
- func Close(session any)
- func MediaOption(commands, publish any) any
- func Register(session any, access Access)
- func RegisterHelpers(value Helpers)
- func RunTerminal(ctx context.Context, session any, media Media) error
- func SettleFrame(view, handle any, last map[string]layout.Rect, width, height int) (any, layout.Composition, map[string]layout.Rect)
- func Unregister(session any)
- type Access
- type Clock
- type HarnessEffects
- type Helpers
- type Media
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
func Close(session any)
Close calls the runtime-owned app cleanup hook for an offscreen session.
func MediaOption ¶
func RegisterHelpers ¶
func RegisterHelpers(value Helpers)
func RunTerminal ¶
RunTerminal invokes the terminal loop attached by root Run to a selected composite host.
func SettleFrame ¶
func Unregister ¶
func Unregister(session any)
Types ¶
type Access ¶
type HarnessEffects ¶
type HarnessEffects struct {
Context context.Context
Updates any
SendUpdate func(context.Context, any) bool
Quit func()
Dispatch func(func())
Clock Clock
Capabilities any
SetClipboard func(string)
ReadClipboard func()
ShowDialog func(any, func(any))
Notify func(any)
Desktop func(any)
}
HarnessEffects contains test-only Effects overrides. Updates and service values are deliberately untyped here; the root package restores their concrete generic types when applying the configuration.