storage

package
v0.0.0-...-932a008 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 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")
View Source
var 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
}

Jump to

Keyboard shortcuts

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