dsn

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

*------------------------------------------------------------**

  • @filename dsn/
  • @author jinycoo
  • @version 1.0.0
  • @date 2019-07-25 13:38
  • @desc dsn - **------------------------------------------------------------*

*------------------------------------------------------------**

  • @filename dsn/
  • @author jinycoo
  • @version 1.0.0
  • @date 2019-07-29 19:02
  • @desc dsn - **------------------------------------------------------------*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindTypeError

type BindTypeError struct {
	Value string
	Type  reflect.Type
}

BindTypeError describes a query value that was not appropriate for a value of a specific Go type.

func (*BindTypeError) Error

func (e *BindTypeError) Error() string

type DSN

type DSN struct {
	*url.URL
}

func Parse

func Parse(rawDSN string) (*DSN, error)

func (*DSN) Addresses

func (d *DSN) Addresses() []string

func (*DSN) Bind

func (d *DSN) Bind(v interface{}) (url.Values, error)

type InvalidBindError

type InvalidBindError struct {
	Type reflect.Type
}

InvalidBindError describes an invalid argument passed to DecodeQuery. (The argument to DecodeQuery must be a non-nil pointer.)

func (*InvalidBindError) Error

func (e *InvalidBindError) Error() string

Jump to

Keyboard shortcuts

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