db

package
v0.0.0-...-6c8f44f Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

DB stores the databse connection in memory

Functions

func CleanUp

func CleanUp()

CleanUp cleans up the database

func Init

func Init(d *InitData)

Init initializes the postgres conneciton.

Types

type InitData

type InitData struct {
	Host     string
	Port     string
	User     string
	Password string
	Dbname   string
	DbHost   string
	DbPort   int
}

InitData is the initial data needed for a connection to teh db

Jump to

Keyboard shortcuts

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