storage

package
v0.0.0-...-e5701bd Latest Latest
Warning

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

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

Documentation

Overview

Package storage is the interface for a server's request handler to store and retrieve entities, following the domain's business logic.

Index

Constants

View Source
const SQLDriver = "postgres"

Variables

View Source
var (
	ErrDBConnection = errors.New("connecting to database")
	ErrDBPing       = errors.New("pinging database")
)

Functions

func Connect

func Connect(conf Config) (*sql.DB, error)

Types

type Config

type Config struct {
	Host    string
	Port    int
	Name    string
	User    string
	Pass    string
	SSLMode string
}

Jump to

Keyboard shortcuts

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