setter

package
v0.7.3 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: 8 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(
	formatter mrsettings.ValueFormatter,
	storage mrsettings.Storage,
	eventEmitter mrsender.EventEmitter,
	errorWrapper mrcore.UsecaseErrorWrapper,
) *Component

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

func (*Component) Set

func (co *Component) Set(ctx context.Context, id mrtype.KeyInt32, value string) error

Set - comment method.

func (*Component) SetBool

func (co *Component) SetBool(ctx context.Context, id mrtype.KeyInt32, value bool) error

SetBool - comment method.

func (*Component) SetInt64

func (co *Component) SetInt64(ctx context.Context, id mrtype.KeyInt32, value int64) error

SetInt64 - comment method.

func (*Component) SetInt64List

func (co *Component) SetInt64List(ctx context.Context, id mrtype.KeyInt32, value []int64) error

SetInt64List - comment method.

func (*Component) SetList

func (co *Component) SetList(ctx context.Context, id mrtype.KeyInt32, value []string) error

SetList - comment method.

Jump to

Keyboard shortcuts

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