Documentation
¶
Index ¶
- func InProcess(services func() *connect.Server, window *Window) *connect.Client
- func Remote(address string, window *Window, env httpx.Env) *connect.Client
- func WithWindow(ctx context.Context, w *Window) context.Context
- type Pinger
- type Window
- func (w *Window) ID() string
- func (w *Window) Language() string
- func (w *Window) Pings(ping Pinger)
- func (w *Window) Profile() string
- func (w *Window) Settle(ctx context.Context, conn *connect.Client) error
- func (w *Window) Speak(id string)
- func (w *Window) Use(profile string)
- func (w *Window) Waits(wait func() time.Duration, ask func(*calls.TimedOut) bool)
- func (w *Window) Yolo(on bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InProcess ¶
Connection of a window to this process's own services. The services are fetched on the first call, so it can be made before every feature has registered
func Remote ¶
Connection of a window to a server at the address, a user and password in it signing each request in, through the proxy and with the authorities of the environment of the profile the window was started on. Its calls wait as the window says, and its connections are kept alive as the wait set as it opens says (bound.go)
Types ¶
type Pinger ¶
Asks the server over the connection whether it still answers, within the context: nil, or any refusal, when it answered. The window is handed one by whoever knows the server's services (main.go hands over the server facet's). With none, a stream is never let go for going quiet, and its connection is kept alive by its transport alone
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
A terminal's connection identity: its profile and id go with every request, so one server answers each terminal on its own profile
func (*Window) Pings ¶
Has the streams of the window's connections asked after through the pinger once they went quiet, from the next stream on
func (*Window) Settle ¶
Has a window of a server on another computer be on the profile of its name there, otherwise on the profile that server started on, so the window never names a profile its server does not keep
func (*Window) Speak ¶
Has the window's requests answered in the language of the id from its next request on