cachegetter

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 9 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

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

func (*Component) Get

func (co *Component) Get(_ context.Context, id mrtype.KeyInt32) (string, error)

Get - comment method.

func (*Component) GetBool

func (co *Component) GetBool(_ context.Context, id mrtype.KeyInt32) (bool, error)

GetBool - comment method.

func (*Component) GetInt64

func (co *Component) GetInt64(_ context.Context, id mrtype.KeyInt32) (int64, error)

GetInt64 - comment method.

func (*Component) GetInt64List

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

GetInt64List - comment method.

func (*Component) GetList

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

GetList - comment method.

func (*Component) Reload

func (co *Component) Reload(ctx context.Context) (count uint64, err error)

Reload - comment method.

Jump to

Keyboard shortcuts

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