shared

package
v0.0.0-...-e1d3906 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIPAddr

func GetIPAddr(ctx *routing.Context) string

GetIPAddr returns the IP address as string from the given request context. When the request contains a 'X-Forwarded-For' header, the value of this will be returned as address. Else, the conext remote address will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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