tunnelling

package
v1.8.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingKey     = errors.New("missing mandatory key")
	ErrUnexpectedType = errors.New("unexpected type")
)

Functions

func ReadSSHTunnelConfig

func ReadSSHTunnelConfig(config Config) (conf *stunnel.Config, err error)

func ReadString

func ReadString(key string, config Config) (*string, error)

func SQLConnectThroughTunnel

func SQLConnectThroughTunnel(dsn string, tunnelConfig Config) (*sql.DB, error)

Types

type Config

type Config map[string]interface{}

type TunnelInfo

type TunnelInfo struct {
	Config Config
}

type Type

type Type string

Jump to

Keyboard shortcuts

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