postgres

package
v0.0.0-...-705876c Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLRepository

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

func NewURLRepository

func NewURLRepository(dbpool *pgxpool.Pool) *URLRepository

func (*URLRepository) Add

func (r *URLRepository) Add(ctx context.Context, u *domain.URL) (int64, error)

func (*URLRepository) Close

func (r *URLRepository) Close()

func (*URLRepository) FindByAlias

func (r *URLRepository) FindByAlias(ctx context.Context, alias string) (*domain.URL, error)

Jump to

Keyboard shortcuts

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