(entityID, runnerGroupName string, runnerGroupID int64)
| 458 | } |
| 459 | |
| 460 | func (e *EntityCache) SetEntityRunnerGroup(entityID, runnerGroupName string, runnerGroupID int64) { |
| 461 | e.mux.Lock() |
| 462 | defer e.mux.Unlock() |
| 463 | |
| 464 | if _, ok := e.entities[entityID]; ok { |
| 465 | e.entities[entityID].RunnerGroups[runnerGroupName] = RunnerGroupEntry{ |
| 466 | RunnerGroupID: runnerGroupID, |
| 467 | time: time.Now().UTC(), |
| 468 | } |
| 469 | } |
| 470 | } |
| 471 | |
| 472 | func (e *EntityCache) GetEntityRunnerGroup(entityID, runnerGroupName string) (int64, bool) { |
| 473 | e.mux.Lock() |
no test coverage detected