utils

package
v0.0.0-...-b707d33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromRequest

func FromRequest(r *http.Request) string

FromRequest return client's real public IP address from http request headers.

func FromWebsocket

func FromWebsocket(r *websocket.Conn) string

FromRequest return client's real public IP address from http request headers.

func RealIP

func RealIP(r interface{}) string

RealIP is depreciated, use FromRequest instead

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL