Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigService ¶
type ConfigService struct { // Config is a pointer to the config object in use by the service Config *domain.Config // Location is the path to the YAML file holding the config Location string }
ConfigService handles loading of the config
func (*ConfigService) Reload ¶
func (s *ConfigService) Reload() (bool, error)
Reload reads the config and applies changes
func (*ConfigService) Watch ¶
func (s *ConfigService) Watch(d time.Duration)
Watch reads the config file every d duration and applies changes
Click to show internal directories.
Click to hide internal directories.