ActiveProfile returns the selected profile. Bootstrap guarantees c.Active names a real one, so this is a straight map lookup.
()
| 329 | // ActiveProfile returns the selected profile. Bootstrap guarantees c.Active |
| 330 | // names a real one, so this is a straight map lookup. |
| 331 | func (c *Config) ActiveProfile() *Profile { |
| 332 | return c.Models[c.Active] |
| 333 | } |
| 334 | |
| 335 | // ActiveURL is the endpoint every dial-out uses: the runtime override if set, |
| 336 | // else the active profile's URL. Use this over ActiveProfile().URL so |
no outgoing calls