Documentation ¶
Overview ¶
Package consul implements gcfg.Adapter using consul service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements gcfg.Adapter implementing using consul service.
func (*Client) Available ¶
Available checks and returns the backend configuration service is available. The optional parameter `resource` specifies certain configuration resource.
Note that this function does not return error as it just does simply check for backend configuration service.
type Config ¶
type Config struct { // api.Config in consul package ConsulConfig api.Config `v:"required"` // As configuration file path key Path string `v:"required"` // Watch watches remote configuration updates, which updates local configuration in memory immediately when remote configuration changes. Watch bool // Logging interface, customized by user, default: glog.New() Logger glog.ILogger }
Config is the configuration object for consul client.
Click to show internal directories.
Click to hide internal directories.