Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CryptoRandomBytes ¶
CryptoRandomBytes generates cryptographically secure random bytes
func CryptoRandomString ¶
CryptoRandomString generates a random hex string for salts
func GetIPFromContext ¶
GetIPFromContext extracts the client IP address from the context. It first attempts to extract from Gin context (via ClientIP method), then falls back to checking for "client_ip" value set by IPMiddleware. Returns empty string if IP cannot be determined.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.