types

package
v1.84.5 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration struct {
	time.Duration
}

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(data []byte) (err error)

type SQL

type SQL struct {
	Host            string
	Port            string
	User            string
	Password        string
	Database        string
	Schema          string
	SSL             *SSL
	MaxOpenConns    uint32
	MaxConnLifetime Duration
	MaxConnIdleTime Duration

	//Additional options to be appended as options=<Options>
	//The value will be taken as is. So be sure to separate multiple options by a space
	Options string
}

func (*SQL) Start

func (s *SQL) Start() (*sql.DB, error)

type SQLBase

type SQLBase struct {
	Host     string
	Port     string
	Database string
	Schema   string
	SSL      SSLBase

	//Additional options to be appended as options=<Options>
	//The value will be taken as is. So be sure to separate multiple options by a space
	Options string
}

type SQLUser

type SQLUser struct {
	User     string
	Password string
	SSL      SSLUser
}

func (SQLUser) Start

func (u SQLUser) Start(base SQLBase) (*sql.DB, error)

type SSL

type SSL struct {
	SSLBase
	SSLUser
}

type SSLBase

type SSLBase struct {
	// type of connection security
	Mode string
	// RootCert Path to the CA certificate
	RootCert string
}

type SSLUser

type SSLUser struct {
	// Cert Path to the client certificate
	Cert string
	// Key Path to the client private key
	Key string
}

Jump to

Keyboard shortcuts

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