Documentation ¶
Overview ¶
Package servod provides functions to manage connection and communication with servod daemon on servo-host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool is a pool of servod to reuse.
Servo are pooled by the `address:port|remote` they are connected to.
Users should call Get, which returns a instance from the pool if available, or creates and returns a new one. The returned servod is not guaranteed to be good, e.g., the connection may have broken while the Client was in the pool.
The user should not close the servod as Pool will close it at the end.
The user should Close the pool after use, to free any resources in the pool.
Click to show internal directories.
Click to hide internal directories.