domain

package
v0.0.0-...-4d0f46b Latest Latest
Warning

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

Go to latest
Published: Apr 6, 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 Link struct {
	ID        uuid.UUID `gorm:"primary_key;type:uuid;<-:create"`
	Token     string    `gorm:"index;type:char(5)"`
	Location  string    `gorm:"type:text"`
	CreatedAt time.Time
}
func NewLink(token string, location string) *Link

type LinkRepository

type LinkRepository interface {
	Store(*Link) error
	GetByToken(string) (Link, error)
	Update(*Link) error
	DeleteByToken(string) error
	Paginate(kontrakto.Paginator) ([]Link, error)
}

Jump to

Keyboard shortcuts

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