Documentation ¶
Index ¶
- type Config
- func (c *Config) Get(key string) interface{}
- func (c *Config) GetAll() map[string]interface{}
- func (c *Config) GetCurrentWatchInterval() time.Duration
- func (c *Config) GetFileName() string
- func (c *Config) Set(data []byte) error
- func (c *Config) SetFilename(fileName string)
- func (c *Config) SetFromFile() error
- func (c *Config) UnWatchFileChanges()
- func (c *Config) WatchFileChanges(duration time.Duration)
- func (c *Config) WriteConfigToFile(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetCurrentWatchInterval ¶
returns current watch interval
func (*Config) UnWatchFileChanges ¶
func (c *Config) UnWatchFileChanges()
disable watching to file changes
func (*Config) WatchFileChanges ¶
enable watching file changes in regular intervals using go routine
func (*Config) WriteConfigToFile ¶
write configuration to file
Click to show internal directories.
Click to hide internal directories.