postgrestore

package
v0.0.0-...-02df9db Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestDB

func TestDB(t *testing.T, dataBaseUrl string) (*sql.DB, func(...string))

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New(db *sql.DB) *Store

func (*Store) GetUrls

func (s *Store) GetUrls() store.UrlRepository

type UrlRepository

type UrlRepository struct {
	// contains filtered or unexported fields
}

func (UrlRepository) Create

func (r UrlRepository) Create(url *model.Url) error

func (UrlRepository) FindByShort

func (r UrlRepository) FindByShort(shortUrl string) (string, error)

Jump to

Keyboard shortcuts

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