lightget

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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(reader mrsettings.Getter) *SettingsGetter

New - создаёт объект SettingsGetter.

func (*SettingsGetter) Get

func (co *SettingsGetter) Get(ctx context.Context, id uint64, defValue string) string

Get - возвращает строковое значение настройки с указанным идентификатором.

func (*SettingsGetter) GetBool

func (co *SettingsGetter) GetBool(ctx context.Context, id uint64, defValue bool) bool

GetBool - возвращает булево значение настройки с указанным идентификатором.

func (*SettingsGetter) GetInt64

func (co *SettingsGetter) GetInt64(ctx context.Context, id uint64, defValue int64) int64

GetInt64 - возвращает целое знаковое значение настройки с указанным идентификатором.

func (*SettingsGetter) GetInt64List

func (co *SettingsGetter) GetInt64List(ctx context.Context, id uint64, defValue []int64) []int64

GetInt64List - возвращает список целых знаковых значений настройки с указанным идентификатором.

func (*SettingsGetter) GetList

func (co *SettingsGetter) GetList(ctx context.Context, id uint64, defValue []string) []string

GetList - возвращает список строковых значений настройки с указанным идентификатором.

Jump to

Keyboard shortcuts

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