dsn

package
v3.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterParser

func RegisterParser(param string, parser func(value string) ([]config.Option, error)) (err error)

Types

type DSN

type DSN interface {
	fmt.Stringer

	// WithSecure makes new DSN from current DSN with passed secure flag
	WithSecure(secure bool) DSN
}

DSN helps to make connection string from separated endpoint and database

func New

func New(endpoint, database string) DSN

New makes secured DSN with endpoint and database

Jump to

Keyboard shortcuts

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