MCPcopy Index your code
hub / github.com/coder/coder / SeatTracker

Struct SeatTracker

enterprise/aiseats/tracker.go:37–45  ·  view source on GitHub ↗

SeatTracker records current AI seat state for users.

Source from the content-addressed store, hash-verified

35
36// SeatTracker records current AI seat state for users.
37type SeatTracker struct {
38 db store
39 logger slog.Logger
40 clock quartz.Clock
41 auditor *atomic.Pointer[audit.Auditor]
42
43 mu sync.RWMutex
44 retryAfter map[uuid.UUID]time.Time
45}
46
47func New(db store, logger slog.Logger, clock quartz.Clock, auditor *atomic.Pointer[audit.Auditor]) *SeatTracker {
48 if clock == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected