Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfiguratorService ¶
type ConfiguratorService struct { Config interface{} // Конфигурация Configurator interface{} // Конфигуратор *viper.Viper // contains filtered or unexported fields }
func New ¶
func New(provider providers.ProviderType, providerConfig, cfg interface{}) (config *ConfiguratorService, err error)
Создание нового сервиса конфигураций
func (*ConfiguratorService) Get ¶
func (c *ConfiguratorService) Get(key string) (value interface{}, err error)
Получение значения
func (*ConfiguratorService) Set ¶
func (c *ConfiguratorService) Set(key string, value interface{}) (err error)
Изменение значения
func (*ConfiguratorService) Update ¶
func (c *ConfiguratorService) Update(cfg interface{}) (new interface{}, err error)
Обновление конфигрурации
Click to show internal directories.
Click to hide internal directories.