persistence

package
v0.0.0-...-459e612 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB() *sqlx.DB

DB ...

func Init

func Init(dbconf DBConfiguration)

Init ...

func Release

func Release() error

Release ...

Types

type DBConfiguration

type DBConfiguration struct {
	Host     string `json:"host"`
	Port     int    `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	DBName   string `json:"dbname"`
	Encoding string `json:"encoding"`
	PoolSize int    `json:"poolsize"`
}

DBConfiguration ...

Jump to

Keyboard shortcuts

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