dial

package module
v0.0.0-...-adcfed6 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts Opts) (tarantool.Dialer, error)

New creates new dialer according to the options.

Types

type Opts

type Opts struct {
	Address         string
	Auth            tarantool.Auth
	User            string
	Password        string
	SslKeyFile      string
	SslCertFile     string
	SslCaFile       string
	SslCiphers      string
	SslPassword     string
	SslPasswordFile string
	Transport       string
}

Opts represents set of dialer parameters.

type Transport

type Transport int

Transport is a type, with a restriction on the list of supported connection modes.

const (
	// TransportDefault used as default value.
	TransportDefault Transport = iota
	// TransportPlain used for insecure connection mode.
	TransportPlain
	// TransportSSL used for encrypted connection mode.
	TransportSsl
)

func Parse

func Parse(tr string) (Transport, error)

Parse returns Transport type according to the input string. Under normal circumstances input should be "ssl" or "plain".

func (Transport) String

func (t Transport) String() string

String returns a string representation of the Transport.

Jump to

Keyboard shortcuts

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