Documentation ¶ Overview ¶ This file contains logic around parsing the postgresql DSN to a map. Copied from https://github.com/lib/pq Index ¶ func GetToken(ctx context.Context, dsn *DSN) (string, error) type DSN type Driver func (d *Driver) Open(name string) (driver.Conn, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetToken ¶ func GetToken(ctx context.Context, dsn *DSN) (string, error) Types ¶ type DSN ¶ type DSN struct { // contains filtered or unexported fields } type Driver ¶ type Driver struct { // contains filtered or unexported fields } func (*Driver) Open ¶ func (d *Driver) Open(name string) (driver.Conn, error) Open opens a new connection to the database. name is a connection string. Most users should only use it through database/sql package from the standard library. Source Files ¶ View all Source files main.go parse.go sign.go Click to show internal directories. Click to hide internal directories.