dsn

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SCHEME_REGEXP = "[a-z0-9]+"
	ID_REGEXP     = "[^:]+"
	SECRET_REGEXP = "[^@]+"
	HOST_REGEXP   = "[a-zA-Z0-9_.-]+"
	PORT_REGEXP   = "[a-zA-Z0-9-]+"
	PATH_REGEXP   = "[a-zA-Z0-9/_.-]+"
	BUCKET_REGEXP = "[a-z-.]{3,63}"
	REGION_REGEXP = "[a-zA-Z]*-[a-zA-Z]*-[0-9]"
)

Variables

This section is empty.

Functions

func NamedExpression

func NamedExpression(name string, expression string) string

func OrExpressions

func OrExpressions(expressions ...string) string

Types

type Dsn

type Dsn struct {
	Scheme string
	Id     string
	Secret string
	Host   string
	Port   string
	Path   string
	// contains filtered or unexported fields
}

func Parse

func Parse(rawdsn string) (dsn *Dsn, err error)

func (*Dsn) SetDefaults

func (d *Dsn) SetDefaults(defaults map[string]string) error

Jump to

Keyboard shortcuts

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