multi

package
v0.0.0-...-4ab5602 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: BSD-2-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyAddrs        = errors.New("addrs should not be empty")
	ErrWrongCheckTimeout = errors.New("wrong check timeout, must be greater than 0")
	ErrNoConnection      = errors.New("no active connections")
	ErrStartFailed       = errors.New("failed to start")
)

Functions

func ConnectToReadOnlyClusterWithDefaults

func ConnectToReadOnlyClusterWithDefaults(ctx context.Context, cancel context.CancelFunc, auth BasicAuth, addresses ...string) (tarantool.Connector, error)

func ConnectWithDefaults

func ConnectWithDefaults(ctx context.Context, cancel context.CancelFunc, auth BasicAuth, addresses ...string) (tarantool.Connector, error)

func ConnectWithOpts

func ConnectWithOpts(addrs []string, connOpts tarantool.Opts, opts OptsMulti) (connMulti tarantool.Connector, err error)

func ConnectWithWritableAwareDefaults

func ConnectWithWritableAwareDefaults(ctx context.Context, cancel context.CancelFunc, requiresWrite bool, auth BasicAuth, addresses ...string) (tarantool.Connector, error)

Types

type BasicAuth

type BasicAuth struct {
	User, Pass string
}

type OptsMulti

type OptsMulti struct {
	CheckTimeout         time.Duration
	NodesGetFunctionName string
	RequiresWrite        bool
	Context              context.Context
	Cancel               context.CancelFunc
}

Jump to

Keyboard shortcuts

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