Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Remote ¶
type Remote struct {
// contains filtered or unexported fields
}
Remote is a core.ConfProvider and contract.ConfigWatcher implementation to read and watch remote config key. The remote client uses etcd.
func (*Remote) Watch ¶
Watch watches the change to the remote key from etcd. If the key is edited or created, the reload function will be called. note the reload function should not just load the changes made within this key, but rather it should reload the whole config stack. For example, if the flag or env takes precedence over the config key, they should remain to be so after the key changes.
Click to show internal directories.
Click to hide internal directories.