dsn

package
v0.0.0-...-c6e60ff Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package dsn provides unified DSN scheme.

Index

Constants

This section is empty.

Variables

View Source
var ErrIllegalDSN = errors.New("illegal DSN")

Functions

func Parse

func Parse(dsn string) (scheme string, uri string, err error)

Parse extracts a unified DSN string and returns the scheme of the dsn and the scheme specific uri.

dsn examples:

kafka:local://me/foobar
mysql:prod://root@localhost:3306/mysql

Types

This section is empty.

Jump to

Keyboard shortcuts

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