Documentation
¶
Index ¶
- func InProcess(services *connect.Server, window *Window) *connect.Client
- func Remote(address string, window *Window, env httpx.Env) *connect.Client
- type Pinger
- type Window
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InProcess ¶
Connection of a window to the services of this process, its calls waiting as the window says
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
}
Profile a window works on and the id it names itself with, which every request of its connection carries, so a server several windows reach answers each on its own profile, a window that switches never moves another, and the server tells the windows on a profile apart
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 work on the profile of its name there, else on the profile that server has in use, 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