tcs

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoValue = errors.New("required value not found")

ErrNoValue used to show that `Get()` was successful, but no values were found.

View Source
var ErrNotSupported = errors.New("required Tarantool EE 3.3+")

ErrNotSupported identifies result of `Start()` why storage was not started.

Functions

This section is empty.

Types

type TCS

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

TCS is a Tarantool centralized configuration storage connection.

func Start

func Start(port int) (TCS, error)

Start starts a Tarantool centralized configuration storage. Use `port = 0` to use any unused port. Returns a Tcs instance and a cleanup function.

func StartTesting

func StartTesting(tb testing.TB, port int) TCS

Start starts a Tarantool centralized configuration storage. Returns a Tcs instance and a cleanup function.

func (*TCS) Credentials

func (t *TCS) Credentials() (string, string)

Credentials returns a user name and password to connect.

func (*TCS) Delete

func (t *TCS) Delete(ctx context.Context, path string) error

Delete implements "config.storage.delete" method.

func (*TCS) Dialer

func (t *TCS) Dialer() tarantool.Dialer

Dialer returns a dialer to connect to Tarantool.

func (*TCS) Doer

func (t *TCS) Doer() tarantool.Doer

Doer returns interface for interacting with Tarantool.

func (*TCS) Endpoints

func (t *TCS) Endpoints() []string

Endpoints returns a list of addresses to connect.

func (*TCS) Get

func (t *TCS) Get(ctx context.Context, path string) (string, error)

Get implements "config.storage.get" method.

func (*TCS) Put

func (t *TCS) Put(ctx context.Context, path string, value string) error

Put implements "config.storage.put" method.

func (*TCS) Stop

func (t *TCS) Stop()

Stop stops the Tarantool centralized configuration storage.

Jump to

Keyboard shortcuts

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