Documentation ¶
Index ¶
- Constants
- func RemoveConfigFile(path string)
- func WriteConfigFile(path string, contents string)
- type Dict
- func (d *Dict) Child(key string) *Dict
- func (d *Dict) Del(key string)
- func (d *Dict) Get(key string) (string, bool)
- func (d *Dict) GetOrDefault(key string, def string) string
- func (d *Dict) HasChild(key string) bool
- func (d *Dict) HasValue(key string) bool
- func (d *Dict) PathGet(path string) (string, bool)
- func (d *Dict) PathGetOrDefault(path string, def string) string
- func (d *Dict) Set(key string, value string)
- type TelegrafReloader
Constants ¶
View Source
const ( LOG_PREFIX = "[reloader]" PROCESS_NAME = "telegraf" )
Variables ¶
This section is empty.
Functions ¶
func RemoveConfigFile ¶
func RemoveConfigFile(path string)
func WriteConfigFile ¶
Types ¶
type Dict ¶
type Dict struct {
// contains filtered or unexported fields
}
a kv-tree to hold values for the template
func (*Dict) PathGetOrDefault ¶
traverse the dictionary and look for a specific value at the path end
type TelegrafReloader ¶
type TelegrafReloader struct {
// contains filtered or unexported fields
}
func NewTelegrafReloader ¶
func NewTelegrafReloader() *TelegrafReloader
Create new config and populate it from environment
func (*TelegrafReloader) IsReloadRequested ¶
func (tr *TelegrafReloader) IsReloadRequested() bool
func (*TelegrafReloader) Reload ¶
func (tr *TelegrafReloader) Reload()
func (*TelegrafReloader) ReloadIfRequested ¶
func (tr *TelegrafReloader) ReloadIfRequested()
func (*TelegrafReloader) RequestReload ¶
func (tr *TelegrafReloader) RequestReload()
Click to show internal directories.
Click to hide internal directories.