repositories

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URL

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

func NewURL

func NewURL(db interfaces.DB) *URL

func (*URL) Create

func (r *URL) Create(ctx context.Context, param *dtos.CreateHash) error

func (*URL) Delete

func (r *URL) Delete(ctx context.Context, hashOrFullURL string) error

func (*URL) GetFullURL

func (r *URL) GetFullURL(ctx context.Context, hash string) (string, error)

func (*URL) WithTx

func (r *URL) WithTx(tx *sql.Tx) *URL

Jump to

Keyboard shortcuts

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