Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Validate *validator.Validate
)
Functions ¶
func CreateShort ¶ added in v0.3.0
func CreateShort() string
func GetIP ¶ added in v0.1.0
GetIP extracts the client IP address from the HTTP request. If behind a reverse proxy (BEHIND_PROXY=true), it trusts X-Forwarded-For or X-Real-IP headers. Otherwise, it uses RemoteAddr which cannot be spoofed.
func InitValidator ¶
func InitValidator()
func ValidateIsNotPrivateIP ¶ added in v0.1.0
func ValidateIsNotPrivateIP(fl validator.FieldLevel) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.