repository

package
v0.0.44 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShortLinkRepository

type ShortLinkRepository struct {
	*gorm.DB `inject:"database"`
}
func (r *ShortLinkRepository) CreateShortLink(shortLink *domain.ShortLink) (*domain.ShortLink, error)

func (*ShortLinkRepository) DeleteById

func (r *ShortLinkRepository) DeleteById(id string) error

func (*ShortLinkRepository) DeleteByKey

func (r *ShortLinkRepository) DeleteByKey(key string) error
func (r *ShortLinkRepository) ExpireExpiredShortLinks()

func (*ShortLinkRepository) GetById

func (r *ShortLinkRepository) GetById(id string) (*domain.ShortLink, error)

func (*ShortLinkRepository) GetByKey

func (r *ShortLinkRepository) GetByKey(key string) (*domain.ShortLink, error)

Jump to

Keyboard shortcuts

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