Documentation
¶
Index ¶
- func GenerateQRCode(content string) ([]byte, error)
- func GenerateShortURL() string
- func GenerateTrackerImage() []byte
- func GenerateUUID() string
- func GenerateUUIDWithoutDashes() string
- func GetEnv(key string) string
- func GetExpireAt(expireIn string) time.Time
- func IsValidURL(url string) bool
- func NewUUID() (uuid string)
- func ParseToken(authorization string) (string, error)
- func RandomChars(length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTrackerImage ¶
func GenerateTrackerImage() []byte
GenerateTrackerImage generates a 1px transparent image which can be used to track emails with a short URL
func GenerateUUIDWithoutDashes ¶
func GenerateUUIDWithoutDashes() string
GenerateUUIDWithoutDashes generates a unique id without dashes
func GetExpireAt ¶
GetExpireAt returns the expire at time
func ParseToken ¶
ParseToken parses the token from authorization header
func RandomChars ¶
RandomChars generates a short url URL with length 5, will give 62⁵ = ~916 Million URLs URL with length 6, will give 62⁶ = ~56 Billion URLs URL with length 7, will give 62⁷ = ~3500 Billion URLs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.