Documentation ¶
Index ¶
- type ShortLinkRepository
- func (r *ShortLinkRepository) CreateShortLink(shortLink *domain.ShortLink) (*domain.ShortLink, error)
- func (r *ShortLinkRepository) DeleteById(id string) error
- func (r *ShortLinkRepository) DeleteByKey(key string) error
- func (r *ShortLinkRepository) ExpireExpiredShortLinks()
- func (r *ShortLinkRepository) GetById(id string) (*domain.ShortLink, error)
- func (r *ShortLinkRepository) GetByKey(key string) (*domain.ShortLink, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortLinkRepository ¶
func (*ShortLinkRepository) CreateShortLink ¶
func (*ShortLinkRepository) DeleteById ¶
func (r *ShortLinkRepository) DeleteById(id string) error
func (*ShortLinkRepository) DeleteByKey ¶
func (r *ShortLinkRepository) DeleteByKey(key string) error
func (*ShortLinkRepository) ExpireExpiredShortLinks ¶
func (r *ShortLinkRepository) ExpireExpiredShortLinks()
Click to show internal directories.
Click to hide internal directories.