client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotfoundValueConfig = errors.New("not found value config")
	ErrValueIsEmpty        = errors.New("value is empty")
)

Defines errors

Functions

This section is empty.

Types

type Client

type Client interface {
	GetValues(ctx context.Context, ignoreEmpty bool) (Values, error)
}

Client is the external stores client.

func New

func New(cfg *config.Config) (Client, error)

New returns a new Client.

type Values

type Values map[string]any

Values are stored values from external stores.

func (Values) SetValue

func (v Values) SetValue(cfg config.Value, value *string) error

SetValue sets the getting value from external stores. If value is json string, is set as map[string]any.

Jump to

Keyboard shortcuts

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