Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulClient ¶
type ConsulClient struct { APIClient *api.Client QueryOptions *api.QueryOptions Config *ConsulConfig OnLoad bool }
func NewConsulClient ¶
func NewConsulClient() *ConsulClient
func (*ConsulClient) Read ¶
func (c *ConsulClient) Read() (result string)
type ConsulConfig ¶
func NewConsulConfig ¶
func NewConsulConfig(interval int, baseUrl string, prefix string, acl string) ConsulConfig
type ConsulWatcher ¶
type ConsulWatcher struct {
ConsulClient *ConsulClient
}
func NewConsulWatcher ¶
func NewConsulWatcher(c *ConsulConfig) ConsulWatcher
func (*ConsulWatcher) Watch ¶
func (w *ConsulWatcher) Watch(appConfig interface{})
Click to show internal directories.
Click to hide internal directories.