settings

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

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

Memory is a map-backed Settings implementation for tests/examples.

func New

func New(values map[string]any) *Memory

func (*Memory) GetBool

func (m *Memory) GetBool(_ context.Context, key string) (bool, bool)

func (*Memory) GetInt

func (m *Memory) GetInt(_ context.Context, key string) (int64, bool)

func (*Memory) GetString

func (m *Memory) GetString(_ context.Context, key string) (string, bool)

func (*Memory) Set

func (m *Memory) Set(key string, value any)

Jump to

Keyboard shortcuts

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