Documentation
¶
Overview ¶
Package sprites implements a keepalive.Listener backed by the Fly Sprites Tasks API (https://docs.sprites.dev/keeping-sprites-running/).
While the agent is active the Listener PUTs a self-expiring task over the local management socket; while present, the task prevents the sprite's last-consumer timer from hibernating the VM. The 5-min lease is the cost safety — a crashed clank-host can't keep the VM alive longer than the lease, regardless of pending work.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener PUTs /v1/tasks/agents while activity is recent.
func New ¶
New constructs a Listener wired to the local Sprites management socket. Passing a nil logger uses log.Default().