| 44 | } |
| 45 | |
| 46 | type EntityCache struct { |
| 47 | mux sync.Mutex |
| 48 | // entity IDs are UUID4s. It is highly unlikely they will collide (🤞). |
| 49 | entities map[string]EntityItem |
| 50 | pools map[string]params.Pool |
| 51 | scalesets map[uint]params.ScaleSet |
| 52 | } |
| 53 | |
| 54 | func (e *EntityCache) GetEntityForScaleSet(scaleSetID uint) (params.ForgeEntity, bool) { |
| 55 | e.mux.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected