Documentation ¶
Index ¶
- type Service
- 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) 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 Service ¶
type Service interface { GetShortURLByUID(ctx context.Context, user *models.SignedInUser, uid string) (*models.ShortUrl, error) CreateShortURL(ctx context.Context, user *models.SignedInUser, path string) (*models.ShortUrl, error) UpdateLastSeenAt(ctx context.Context, shortURL *models.ShortUrl) error DeleteStaleShortURLs(ctx context.Context, cmd *models.DeleteShortUrlCommand) error }
type ShortURLService ¶
func ProvideService ¶
func ProvideService(sqlStore *sqlstore.SQLStore) *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) UpdateLastSeenAt ¶
Click to show internal directories.
Click to hide internal directories.