Documentation
¶
Index ¶
Constants ¶
View Source
const CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
View Source
const DIGIT_CHARS = "0123456789"
View Source
const LEN_CHARS = len(CHARS)
View Source
const LEN_DIGIT_CHARS = len(DIGIT_CHARS)
Variables ¶
This section is empty.
Functions ¶
func RandomBytes ¶
RandomBytes returns a random byte slice of the given length.
func RandomDigits ¶
func RandomString ¶
RandomString returns a random string of the given length.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) GenerateToken ¶
GenerateToken generates a new JWT token.
Click to show internal directories.
Click to hide internal directories.