database

package
v0.0.0-...-e6db692 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conn *pgxpool.Pool
)

Functions

func Connect

func Connect()

Types

type PgxUrlRepository

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

func NewPgxUrlRepository

func NewPgxUrlRepository() *PgxUrlRepository

func (*PgxUrlRepository) Create

func (r *PgxUrlRepository) Create(url *entity.Url) (*entity.Url, error)

func (*PgxUrlRepository) FindByCode

func (r *PgxUrlRepository) FindByCode(code string) (*entity.Url, error)

Jump to

Keyboard shortcuts

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