Documentation
¶
Index ¶
- func GenerateRandom(randomType Type) (string, error)
- func GenerateRandomLength(length int, randomType Type) (string, error)
- func HashPass(password string) string
- func NewCDN(config CDNConfig) (*s3.S3, error)
- func PSQL() sq.StatementBuilderType
- type CDNConfig
- type Characters
- type Length
- type NotInExpr
- type StringSQL
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandom ¶ added in v0.7.1
GenerateRandom generates a random string for either password or salt
func GenerateRandomLength ¶ added in v1.1.0
func HashPass ¶
HashPass hashes a password using a Whirlpool hash. Passwords are presumed to be hashed.
func PSQL ¶ added in v0.7.1
func PSQL() sq.StatementBuilderType
Types ¶
type CDNConfig ¶ added in v1.1.0
CDNConfig represents a configuration to connect to a CDN / S3 instance
type Characters ¶ added in v1.1.0
type Characters string
const ( UsernameCharacters Characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" SaltCharacters Characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/." PasswordCharacters Characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@*()&" )
type NotInExpr ¶ added in v1.0.0
type NotInExpr inExpr
NotInExpr helps to use NOT IN in SQL query
Click to show internal directories.
Click to hide internal directories.