dial

package
v0.111.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package dial provides types to implement go-hdb custom dialers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	DialContext(ctx context.Context, address string, options DialerOptions) (net.Conn, error)
}

The Dialer interface needs to be implemented by custom Dialers. A Dialer for providing a custom driver connection to the database can be set in the driver.Connector object.

var DefaultDialer Dialer = &dialer{}

DefaultDialer is the default driver Dialer implementation.

type DialerOptions

type DialerOptions struct {
	Timeout, TCPKeepAlive time.Duration
}

DialerOptions contains optional parameters that might be used by a Dialer.

Jump to

Keyboard shortcuts

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