data

package
v0.0.0-...-adf9052 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("record not found")
)

Functions

This section is empty.

Types

type Reposiroty

type Reposiroty struct {
	TinyURL interface {
		Create(tinyURL *models.TinyURL) error
		Get(short string) (*models.TinyURL, error)
	}
}

func NewRepo

func NewRepo(db *database.DB) *Reposiroty

type TinyURLRepo

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

func (TinyURLRepo) Create

func (turl TinyURLRepo) Create(tinyURL *models.TinyURL) error

func (TinyURLRepo) Get

func (turl TinyURLRepo) Get(short string) (*models.TinyURL, error)

Jump to

Keyboard shortcuts

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