Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfStore ¶
NewConfStore returns a new consul ConfStore object
func NewReaction ¶
NewReaction returns a new consul Reaction object
Types ¶
type ConfStore ¶
type ConfStore struct {
Config *Config
}
ConfStore object
type Config ¶
type Config struct { Address string `mapstructure:"address" version:"1"` Datacenter string `mapstructure:"datacenter" version:"1"` WaitTime string `mapstructure:"wait_time" version:"1"` Token string `mapstructure:"token" version:"1"` Discovery bool `mapstructure:"discovery" version:"1"` Exposed bool `mapstructure:"exposed" version:"1"` Published bool `mapstructure:"published" version:"1"` Confstore bool `mapstructure:"confstore" version:"1"` }
Config object for consul
func (*Config) ValidateConfig ¶
ValidateConfig returns a validated object TODO: remove
type ConfigDecoder ¶
type ConfigDecoder struct{}
ConfigDecoder ...
func (*ConfigDecoder) DecodeConfig ¶
func (cd *ConfigDecoder) DecodeConfig(data interface{}) (engine.Config, error)
DecodeConfig returns a parsed config object
Click to show internal directories.
Click to hide internal directories.