Documentation
¶
Index ¶
- type SettingsGetter
- func (co *SettingsGetter) Get(ctx context.Context, id uint64, defValue string) string
- func (co *SettingsGetter) GetBool(ctx context.Context, id uint64, defValue bool) bool
- func (co *SettingsGetter) GetInt64(ctx context.Context, id uint64, defValue int64) int64
- func (co *SettingsGetter) GetInt64List(ctx context.Context, id uint64, defValue []int64) []int64
- func (co *SettingsGetter) GetList(ctx context.Context, id uint64, defValue []string) []string
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 (*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.