Documentation ¶ Index ¶ func GetIPAddr(ctx *routing.Context) string 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. Source Files ¶ View all Source files shared.go Click to show internal directories. Click to hide internal directories.