Documentation
¶
Index ¶
Constants ¶
const DefaultTimeout = 30 * time.Second
DefaultTimeout bounds a single Send (write request + read response). It is generous enough for the slowest handler — `stop` waits out the process termination grace period before replying — while still turning a wedged daemon into a prompt error instead of a command that hangs forever.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a connection to the devrun daemon.
func (*Client) Conn ¶
Conn returns the underlying connection (used during attach for raw byte streaming).
func (*Client) SetTimeout ¶
SetTimeout overrides the per-Send deadline. A non-positive value disables it (use this before switching to raw streaming via Conn).