Documentation ¶
Index ¶
- Variables
- func EncodePassword(password []byte, salt []byte) ([]byte, error)
- func GenerateJWT(username string) string
- func GetActiveLinkKey() string
- func GetConfigKey() string
- func GetDailyReportKey(linkId string) string
- func GetDispatchPastTaskFlagKey() string
- func GetIdLengthConfigKey() string
- func GetIdMaximumLengthConfigKey() string
- func GetIdMinimumLengthConfigKey() string
- func GetIntQueryValue(c *gin.Context, key string, defaults int) int
- func GetLandingHostsConfigKey() string
- func GetRequestHistoryKey(linkId string) string
- func GetShortLinkKey(id string) string
- func GetShortLinkNotFoundConfigKey() string
- func GetShortLinksKey() string
- func GetUserKey() string
- func GetUserShortLinksKey(username string) string
- func RandStringRunes(n int) string
- func RandomSalt(size int) ([]byte, error)
- func ReverseAny(s interface{})
- func TrimShortLinkId(s string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var SecretKey = os.Getenv("SECRET_KEY")
Functions ¶
func GenerateJWT ¶
func GetActiveLinkKey ¶ added in v1.3.0
func GetActiveLinkKey() string
func GetConfigKey ¶ added in v1.4.2
func GetConfigKey() string
func GetDailyReportKey ¶ added in v1.3.0
func GetDispatchPastTaskFlagKey ¶ added in v1.3.0
func GetDispatchPastTaskFlagKey() string
func GetIdLengthConfigKey ¶ added in v1.4.2
func GetIdLengthConfigKey() string
func GetIdMaximumLengthConfigKey ¶ added in v1.4.2
func GetIdMaximumLengthConfigKey() string
func GetIdMinimumLengthConfigKey ¶ added in v1.4.2
func GetIdMinimumLengthConfigKey() string
func GetIntQueryValue ¶
获取指定 URL Query 参数的值(整数类型)
func GetLandingHostsConfigKey ¶ added in v1.4.2
func GetLandingHostsConfigKey() string
func GetRequestHistoryKey ¶
func GetShortLinkKey ¶
func GetShortLinkNotFoundConfigKey ¶ added in v1.4.2
func GetShortLinkNotFoundConfigKey() string
func GetShortLinksKey ¶
func GetShortLinksKey() string
func GetUserKey ¶
func GetUserKey() string
func GetUserShortLinksKey ¶
func RandStringRunes ¶
func ReverseAny ¶ added in v1.3.0
func ReverseAny(s interface{})
func TrimShortLinkId ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.