Postgres

package
v0.0.0-...-cb931d6 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

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

func New

func New(cfg config.Postgres) (*Postgres, error)

type UrlRepositoryPostgres

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

func NewUserRepository

func NewUserRepository(pq *Postgres) *UrlRepositoryPostgres

func (*UrlRepositoryPostgres) DeleteURL

func (repo *UrlRepositoryPostgres) DeleteURL(alias string) error

func (*UrlRepositoryPostgres) GetURL

func (repo *UrlRepositoryPostgres) GetURL(alias string) (string, error)

func (*UrlRepositoryPostgres) SaveURL

func (repo *UrlRepositoryPostgres) SaveURL(urlToSave string, alias string) error

Jump to

Keyboard shortcuts

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