repository

package
v0.0.0-...-c619c4c Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresDB

func NewPostgresDB(cfg Config) (*sqlx.DB, error)

NewPostgresDB ...

Types

type Authorization

type Authorization interface {
}

Authorization ...

type Config

type Config struct {
	DBEngine string
	Host     string
	Port     string
	Username string
	Password string
	DBName   string
	SSLMode  string
}

Config ...

type Repository

type Repository struct {
	Authorization
	TodoList
	TodoItem
}

Repository ...

func NewRepository

func NewRepository(db *sqlx.DB) *Repository

NewRepository ...

type TodoItem

type TodoItem interface {
}

TodoItem ...

type TodoList

type TodoList interface {
}

TodoList ...

Jump to

Keyboard shortcuts

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