Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewConfigLoader, NewStatusLoader)
Functions ¶
func NewConfigLoader ¶
func NewConfigLoader(cc *conf.ConsulConfig) core.ConfigLoader
func NewConsulCli ¶
func NewConsulCli(cc *conf.ConsulConfig) *consulAPI.Client
func NewStatusLoader ¶
func NewStatusLoader(cfg *conf.DBConfig) core.StatusLoader
Types ¶
type ConfigLoader ¶
type ConfigLoader struct {
// contains filtered or unexported fields
}
func (*ConfigLoader) AllConfigs ¶
func (l *ConfigLoader) AllConfigs() ([]*core.Config, error)
实现 ConfigLoader 接口
func (*ConfigLoader) SaveConfig ¶
func (l *ConfigLoader) SaveConfig(name string, s *core.Config) error
type Status ¶
type StatusLoader ¶
type StatusLoader struct {
// contains filtered or unexported fields
}
func (*StatusLoader) SaveStatus ¶
func (l *StatusLoader) SaveStatus(name string, s *core.Status) error
Click to show internal directories.
Click to hide internal directories.