Documentation ¶
Index ¶
- type SettingsGetter
- func (co *SettingsGetter) Get(ctx context.Context, id uint64) (string, error)
- func (co *SettingsGetter) GetBool(ctx context.Context, id uint64) (bool, error)
- func (co *SettingsGetter) GetInt64(ctx context.Context, id uint64) (int64, error)
- func (co *SettingsGetter) GetInt64List(ctx context.Context, id uint64) ([]int64, error)
- func (co *SettingsGetter) GetList(ctx context.Context, id uint64) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SettingsGetter ¶
type SettingsGetter struct {
// contains filtered or unexported fields
}
SettingsGetter - компонент для извлечения настроек, которые хранятся в хранилище данных.
func New ¶
func New(parser mrsettings.ValueParser, storage mrsettings.Storage, errorWrapper mrcore.UseCaseErrorWrapper) *SettingsGetter
New - создаёт объект SettingsGetter.
func (*SettingsGetter) Get ¶
Get - возвращает строковое значение настройки с указанным идентификатором.
func (*SettingsGetter) GetBool ¶
GetBool - возвращает булево значение настройки с указанным идентификатором.
func (*SettingsGetter) GetInt64 ¶
GetInt64 - возвращает целое знаковое значения настройки с указанным идентификатором.
func (*SettingsGetter) GetInt64List ¶
GetInt64List - возвращает список целых знаковых значений настройки с указанным идентификатором.
Click to show internal directories.
Click to hide internal directories.