Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortLinkDbInterface ¶
type ShortLinkDbInterface interface { GenShortLink(ctx context.Context, rawLink string) (*ShortLink, error) GenShortLinkWithExpire(ctx context.Context, rawLink string, expireAt time.Time) (*ShortLink, error) GetByShortLinkPath(ctx context.Context, shortLinkPath string) (*ShortLink, error) GetByRawLink(ctx context.Context, rawLink string) (*ShortLink, error) SetShortLinkExpire(ctx context.Context, shorLinkPath string, expireAt time.Time) error DeleteShortLink(ctx context.Context, shortLinkPath string) error }
Click to show internal directories.
Click to hide internal directories.