(cfg *config.Config)
| 37 | } |
| 38 | |
| 39 | func New(cfg *config.Config) *Controller { |
| 40 | _, cancel := context.WithCancel(context.Background()) |
| 41 | return &Controller{ |
| 42 | cfg: cfg, |
| 43 | apiPort: netutil.FindFreePort(), |
| 44 | metricPort: netutil.FindFreePort(), |
| 45 | cancelFunc: cancel, |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | func (c *Controller) ApiKey() uuid.UUID { |
| 50 | c.mu.RLock() |
no test coverage detected