MCPcopy
hub / github.com/livekit/livekit / Worker

Struct Worker

pkg/agent/worker.go:239–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237var _ WorkerSignalHandler = (*Worker)(nil)
238
239type Worker struct {
240 WorkerPingHandler
241 WorkerRegistration
242
243 apiKey string
244 apiSecret string
245 logger logger.Logger
246
247 ctx context.Context
248 cancel context.CancelFunc
249 closed chan struct{}
250
251 mu sync.Mutex
252 load float32
253 status livekit.WorkerStatus
254
255 runningJobs map[livekit.JobID]*livekit.Job
256 availability map[livekit.JobID]chan *livekit.AvailabilityResponse
257}
258
259func NewWorker(
260 registration WorkerRegistration,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected