repository

package
v0.0.0-...-a592edd Latest Latest
Warning

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

Go to latest
Published: Mar 18, 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 Repository

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

func New

func New(pool *pgxpool.Pool) *Repository

func (*Repository) Create

func (r *Repository) Create(ctx context.Context, payload entity.UrlPayload) error

func (*Repository) Get

func (r *Repository) Get(ctx context.Context, hash string) (entity.UrlPayload, error)

func (*Repository) GetByLongUrl

func (r *Repository) GetByLongUrl(ctx context.Context, longUrl string) (entity.UrlPayload, error)

Jump to

Keyboard shortcuts

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