Documentation
¶
Index ¶
- Variables
- type TCS
- func (t *TCS) Credentials() (string, string)
- func (t *TCS) Delete(ctx context.Context, path string) error
- func (t *TCS) Dialer() tarantool.Dialer
- func (t *TCS) Doer() tarantool.Doer
- func (t *TCS) Endpoints() []string
- func (t *TCS) Get(ctx context.Context, path string) (string, error)
- func (t *TCS) Put(ctx context.Context, path string, value string) error
- func (t *TCS) Stop()
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 ¶
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 ¶
Start starts a Tarantool centralized configuration storage. Returns a Tcs instance and a cleanup function.
func (*TCS) Credentials ¶
Credentials returns a user name and password to connect.
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.
Click to show internal directories.
Click to hide internal directories.