Documentation ¶
Index ¶
Constants ¶
View Source
const (
// CloudflareForwardedIP is the client's original IP given by CloudFlare in the request header.
CloudflareForwardedIP = "CF-Connecting-IP"
)
Variables ¶
This section is empty.
Functions ¶
func GetCharacterIndex ¶ added in v1.3.0
func GetIP ¶
func GetIP(ctx *fasthttp.RequestCtx) string
GetIP gets the forwarded IP from Cloudflare if it's available, or gets the remote IP as given by fasthttp.RequestCtx as a fallback.
func GetServerRoot ¶ added in v1.3.0
func GetServerRoot(ctx *fasthttp.RequestCtx) string
GetServerRoot gets the base domain that the server is using. If localhost is being used, it replaces https with http.
func StringToZWS ¶ added in v1.3.0
func ZWSToString ¶ added in v1.3.0
what else am i supposed to call it dumbass
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.