Documentation ¶
Index ¶
- Variables
- func AssertString(txt string, opts StringOpts) (string, error)
- func GenerateAccessToken() string
- func GetEntityIDFromParams(c *gin.Context, paramName string) common.Snowflake
- func GetEntityIDFromQueryParams(c *gin.Context, paramName string) common.Snowflake
- func GetRegion() string
- func IsProduction() bool
- func LogTimeTaken(functionName string, startTime time.Time)
- func StringOrDefault(args ...string) string
- func ValidateEmail(email string) bool
- type StringOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var EMAIL_REGEX *regexp.Regexp
View Source
var USERNAME_REGEX *regexp.Regexp
Functions ¶
func AssertString ¶
func AssertString(txt string, opts StringOpts) (string, error)
func GenerateAccessToken ¶
func GenerateAccessToken() string
func GetEntityIDFromParams ¶
func IsProduction ¶
func IsProduction() bool
func LogTimeTaken ¶
func StringOrDefault ¶
func ValidateEmail ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.