Documentation
¶
Overview ¶
Package queues builds the lease queue view: who waits in line for which resource, behind whom. It only reads agentsync's lock directory (<claude dir>/agentsync/locks) through agentsync's own reader, lease.ReadLines, which says what it could not read; it never writes a queue or a lease and never calls claim or release.
Index ¶
Constants ¶
const DefaultIdle = 15 * time.Minute
DefaultIdle is agentsync's default idle limit: how long a holder may do nothing with its lease before another session may take it.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
ClaudeDir string // ~/.claude
Idle time.Duration // zero takes DefaultIdle
Now func() time.Time
}
Config is where the engine reads.