package
module
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: May 30, 2016
License: BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Set of frequently used functions:
- ClientIP - detects client IP using X-Forwarded-For and X-Real-IP headers along with client address
- ClientID - assign to client randomly generated unique ID
- Package geoip - Geo IP database helper
Install
go get gopkg.in/sima-land/go-toolkit.v1
Documentation
¶
ClientID returns randomly generated client's ID
ClientIP returns client's IP.
If IP can not be detected function returns 127.0.0.1
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.