Documentation ¶
Index ¶
- func FullHTMLHandler(w http.ResponseWriter, info *conf.IPInfo, _ *BuildInfo) error
- func HTMLHandler(w http.ResponseWriter, info *conf.IPInfo, _ *BuildInfo) error
- func JSONHandler(w http.ResponseWriter, info *conf.IPInfo, _ *BuildInfo) error
- func TextCompactHandler(w http.ResponseWriter, info *conf.IPInfo, _ *BuildInfo) error
- func TextHandler(w http.ResponseWriter, r *http.Request, cfg *conf.Cfg, info *conf.IPInfo) error
- func TextShortHandler(w http.ResponseWriter, info *conf.IPInfo, _ *BuildInfo) error
- func VersionHandler(w http.ResponseWriter, _ *conf.IPInfo, buildInfo *BuildInfo) error
- func XMLHandler(w http.ResponseWriter, info *conf.IPInfo, _ *BuildInfo) error
- type BuildInfo
- type XMLInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullHTMLHandler ¶ added in v1.8.0
FullHTMLHandler is handler for full text/html response.
func HTMLHandler ¶ added in v1.5.0
HTMLHandler is handler for text/html response.
func JSONHandler ¶
JSONHandler is handler for application/json response.
func TextCompactHandler ¶ added in v1.7.0
TextCompactHandler is handler for text/plain response with compact info.
func TextHandler ¶
TextHandler is handler for text/plain response.
func TextShortHandler ¶
TextShortHandler is handler for text/plain response with short info. It returns only IP address, country, city and time.
func VersionHandler ¶ added in v1.6.0
VersionHandler is handler for version information.
func XMLHandler ¶ added in v1.4.0
XMLHandler is handler for application/xml response.
Types ¶
Click to show internal directories.
Click to hide internal directories.