Versions in this module Expand all Collapse all v1 v1.0.0 Oct 8, 2023 Changes in this version + type ShortLinkGenerator struct + func GetShortLinkGenerator() *ShortLinkGenerator + func (g *ShortLinkGenerator) DeleteShortLink(ctx context.Context, shortLinkPath string) error + func (g *ShortLinkGenerator) GenShortLink(ctx context.Context, rawLink string) (*db_base.ShortLink, error) + func (g *ShortLinkGenerator) GenShortLinkWithExpire(ctx context.Context, rawLink string, expireAt time.Time) (*db_base.ShortLink, error) + func (g *ShortLinkGenerator) GetByRawLink(ctx context.Context, rawLink string) (*db_base.ShortLink, error) + func (g *ShortLinkGenerator) GetByShortLinkPath(ctx context.Context, shortLinkPath string) (*db_base.ShortLink, error) + func (g *ShortLinkGenerator) SetShortLinkExpire(ctx context.Context, shorLinkPath string, expireAt time.Time) error + func (g *ShortLinkGenerator) WithMysql(config *mysql_db.MysqlDbConfig) *ShortLinkGenerator