Documentation ¶
Index ¶
- type ShortURLService
- func (s ShortURLService) CreateShortURL(ctx context.Context, user *user.SignedInUser, relPath string) (*shorturls.ShortUrl, error)
- func (s ShortURLService) DeleteStaleShortURLs(ctx context.Context, cmd *shorturls.DeleteShortUrlCommand) error
- func (s ShortURLService) GetShortURLByUID(ctx context.Context, user *user.SignedInUser, uid string) (*shorturls.ShortUrl, error)
- func (s ShortURLService) UpdateLastSeenAt(ctx context.Context, shortURL *shorturls.ShortUrl) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortURLService ¶
type ShortURLService struct {
SQLStore store
}
func ProvideService ¶
func ProvideService(db db.DB) *ShortURLService
func (ShortURLService) CreateShortURL ¶
func (s ShortURLService) CreateShortURL(ctx context.Context, user *user.SignedInUser, relPath string) (*shorturls.ShortUrl, error)
func (ShortURLService) DeleteStaleShortURLs ¶
func (s ShortURLService) DeleteStaleShortURLs(ctx context.Context, cmd *shorturls.DeleteShortUrlCommand) error
func (ShortURLService) GetShortURLByUID ¶
func (s ShortURLService) GetShortURLByUID(ctx context.Context, user *user.SignedInUser, uid string) (*shorturls.ShortUrl, error)
func (ShortURLService) UpdateLastSeenAt ¶
Click to show internal directories.
Click to hide internal directories.