configurator

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 5 Imported by: 0

README

Конфигуратор

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)

Обновление конфигрурации

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL