Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(reader *geoip2.Reader) gin.HandlerFunc
New will return a gin.HandlerFunc and set "x-geoip-city" in ctx.
By default it will read `X-Forwarded-For` as first priority, then gin's `RemoteIP`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.