lightgetter

package
v0.7.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	// contains filtered or unexported fields
}

Component - компонент для извлечения настроек, которые хранятся в хранилище данных.

func New

func New(reader mrsettings.Getter) *Component

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

func (*Component) Get

func (co *Component) Get(ctx context.Context, id mrtype.KeyInt32, defaultVal string) string

Get - comment method.

func (*Component) GetBool

func (co *Component) GetBool(ctx context.Context, id mrtype.KeyInt32, defaultVal bool) bool

GetBool - comment method.

func (*Component) GetInt64

func (co *Component) GetInt64(ctx context.Context, id mrtype.KeyInt32, defaultVal int64) int64

GetInt64 - comment method.

func (*Component) GetInt64List

func (co *Component) GetInt64List(ctx context.Context, id mrtype.KeyInt32, defaultVal []int64) []int64

GetInt64List - comment method.

func (*Component) GetList

func (co *Component) GetList(ctx context.Context, id mrtype.KeyInt32, defaultVal []string) []string

GetList - comment method.

Jump to

Keyboard shortcuts

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