Documentation ¶
Index ¶
- type ShortURLService
- func (s ShortURLService) CreateShortURL(ctx context.Context, user *models.SignedInUser, path string) (*models.ShortUrl, error)
- func (s ShortURLService) DeleteStaleShortURLs(ctx context.Context, cmd *models.DeleteShortUrlCommand) error
- func (s ShortURLService) GetShortURLByUID(ctx context.Context, user *models.SignedInUser, uid string) (*models.ShortUrl, error)
- func (s *ShortURLService) Init() error
- func (s ShortURLService) UpdateLastSeenAt(ctx context.Context, shortURL *models.ShortUrl) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortURLService ¶
func (ShortURLService) CreateShortURL ¶
func (s ShortURLService) CreateShortURL(ctx context.Context, user *models.SignedInUser, path string) (*models.ShortUrl, error)
func (ShortURLService) DeleteStaleShortURLs ¶
func (s ShortURLService) DeleteStaleShortURLs(ctx context.Context, cmd *models.DeleteShortUrlCommand) error
func (ShortURLService) GetShortURLByUID ¶
func (s ShortURLService) GetShortURLByUID(ctx context.Context, user *models.SignedInUser, uid string) (*models.ShortUrl, error)
func (*ShortURLService) Init ¶
func (s *ShortURLService) Init() error
func (ShortURLService) UpdateLastSeenAt ¶
Click to show internal directories.
Click to hide internal directories.