client

package
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InProcess

func InProcess(services *connect.Server, window *Window) *connect.Client

Connection of a window to the services of this process, its calls waiting as the window says

func Remote

func Remote(address string, window *Window, env httpx.Env) *connect.Client

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

type Pinger func(ctx context.Context, conn *connect.Client) error

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 NewWindow

func NewWindow(profile string) *Window

Window that works on the profile, the server's own in use for none

func (*Window) Language

func (w *Window) Language() string

Language the window speaks, empty until it names one

func (*Window) Pings

func (w *Window) Pings(ping Pinger)

Has the streams of the window's connections asked after through the pinger once they went quiet, from the next stream on

func (*Window) Profile

func (w *Window) Profile() string

Profile the window works on, empty for the one the server has in use

func (*Window) Settle

func (w *Window) Settle(ctx context.Context, conn *connect.Client) error

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

func (w *Window) Speak(id string)

Has the window's requests answered in the language of the id from its next request on

func (*Window) Use

func (w *Window) Use(profile string)

Has the window work on the profile from its next request on

func (*Window) Waits

func (w *Window) Waits(wait func() time.Duration, ask func(*calls.TimedOut) bool)

Has the calls of the window wait as the wait set says from the next one on, and ask the person through ask about a call its server did not answer in time

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL