Documentation
¶
Index ¶
- func Drawn() map[string]Graphics
- func On(value string) bool
- func Shown(value string) bool
- func Used(ctx context.Context, settings configv1connect.ConfigServiceClient, ...) (string, error)
- type App
- func (a *App) Console() func()
- func (a *App) Getenv(profile, name string) string
- func (a *App) Owns(own bool)
- func (a *App) RequestWait() time.Duration
- func (a *App) Run(ctx context.Context, conn *connect.Client) (err error)
- func (a *App) Shed(all bool)
- func (a *App) Speak(id string)
- func (a *App) StartupWait() time.Duration
- func (a *App) Unanswered(timed *calls.TimedOut) bool
- func (a *App) Window(w *client.Window)
- type Graphics
- type Parter
- type Refused
- type Registrant
- type Registry
- type Stepper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Drawn ¶
What each terminal of this computer was last found to draw, by the name its record is kept under; none where no window told it or the file does not read
func On ¶
Whether a value as YAML that Used read is on: a toggle, or text that reads as one, as the server reads a toggle whose text names a variable whose value is that text
func Shown ¶
Whether a value as YAML that the settings service shows of a setting is not the value in use: text that names a variable as ${NAME}, which it shows as it is written, or a secret it masks. A change told with such a value is read again with Used
func Used ¶
func Used(ctx context.Context, settings configv1connect.ConfigServiceClient, key, profile string) (string, error)
Value as YAML of the setting under the key as it is read for use, every reference in its text standing for the variable it names: JSON, which reads as YAML, and null for a key that holds nothing. What the app and its screens act on, where the settings service shows the value as it is written. The profile is the window's for none
Types ¶
type App ¶
type App struct {
Registry
// contains filtered or unexported fields
}
func (*App) Console ¶
func (a *App) Console() func()
Switches nothing: the terminals of the other systems take UTF-8 text as they are
func (*App) Getenv ¶
Variable of the environment a profile has on this computer, the window's profile for an empty name, empty when it has none: what work the window does here itself reads for the profile, such as the proxy of a sign-in a page of that profile runs. A window of icebath's own server reads the profile's .env and secret stores, one of a server elsewhere what this computer keeps of a profile of that name
func (*App) Owns ¶
Tells the app whether the server the window runs on is this process's own, so what it says as it quits says what ends with it, and what it says as it is suspended to the shell what waits with it
func (*App) RequestWait ¶
How long the window waits for its server to answer a request, as Answer wait says; none for no limit
func (*App) Run ¶
Runs the screens until the person quits, then lets the registrants let go of what they hold
func (*App) Shed ¶
Has every card of the window let go of what it drew and keeps to draw again, what it drew for another size or with all everything, as the memory of the process nears what it may use; nothing before the window runs
func (*App) Speak ¶
Has the window's requests answered in the language of the id from their next one on
func (*App) StartupWait ¶
How long the window waits for the server it is set to use as it opens, as Server wait says
func (*App) Unanswered ¶
Asks the person whether a call its server did not answer in time goes again: a warning names the call, the wait and the key that asks again, and the call is given up when the key is not pressed while the warning stands, or the window closes. A call made before the window runs, or with no window at all, is given up at once
type Parter ¶
type Parter interface {
// Lines to print below the app in the terminal, none for nothing to say; own is whether the server the window ran on was this process's
// own, which ends with it. Honour ctx, which ends at the wait
Parting(ctx context.Context, own bool) []string
}
Registrant with something to say once the window is gone, such as how to come back to the sessions written to and the work left running
type Refused ¶
A saved shortcut the keys of this app refuse, and why in a sentence a person reads
func Shortcuts ¶
The keys of this app as the settings leave them: the kit's actions at their default keys with the saved shortcuts over them, the saved shortcuts the keys refuse, and how many saved ones differ from their defaults. A saved shortcut of an action only a screen brings is not judged here, as the screens are the window's; one that can't be read at all is the error
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) Close ¶
Lets every registrant that holds something past the screens, such as a microphone, let go of it as the app exits, the last registered first
func (*Registry) Parting ¶
What the registrants that part say, in the order they were registered, a blank line between two of them
func (*Registry) Register ¶
func (r *Registry) Register(registrant Registrant)
type Stepper ¶
type Stepper interface {
// The steps, each with what was found of it on this computer; called off the UI loop
Steps(kit *tui.Kit) []firstrun.Step
}
A registrant that also offers steps of the first run about the computer the window runs on, which the window alone can look at, such as the keys the terminal it runs in sends
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package server serves what the terminal app reads of the server beside the settings, such as the styles a profile keeps
|
Package server serves what the terminal app reads of the server beside the settings, such as the styles a profile keeps |