urlshorter

package
v0.0.0-...-2854391 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLShorter

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

func NewURLShorter

func NewURLShorter(pool *pgxpool.Pool) *URLShorter

func (*URLShorter) GetURLByHash

func (u *URLShorter) GetURLByHash(ctx context.Context, hash string) (string, error)

func (*URLShorter) SetURLByHash

func (u *URLShorter) SetURLByHash(ctx context.Context, hash, url string) error

Jump to

Keyboard shortcuts

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