| 237 | var _ WorkerSignalHandler = (*Worker)(nil) |
| 238 | |
| 239 | type 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 | |
| 259 | func NewWorker( |
| 260 | registration WorkerRegistration, |
nothing calls this directly
no outgoing calls
no test coverage detected