remoteip

command module
v0.0.0-...-f71cfea Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: GPL-3.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Simple RemoteIP REST API

Simple REST API to get your remote ip address.
Standalone http-server written in GO

Status

https://ip.mindc.net running...
https://ip4.mindc.net running...
https://ip6.mindc.net running...

API

https://ip.mindc.net/plain

method: GET,POST
response (text/plain):

8.8.8.8
https://ip.mindc.net/json

method: GET,POST
response (application/json):

{"ip":"8.8.8.8"}
https://ip.mindc.net/jsonp?callback=YOUR_CALLBACK

method: GET
response (text/javascript):

YOUR_CALLBACK("8.8.8.8");
https://ip.mindc.net/jsonrpc

method: POST
response (application/json):

{"jsonrpc":"2.0","id":"xFrB","result":"8.8.8.8"}

* require valid JSON-RPC 2.0 request with any string value as method

Source code

https://github.com/mindc/remoteip

Using https://github.com/valyala/fasthttp as net/http replacement.
Using https://github.com/buaazp/fasthttprouter as HTTP request router.
Using https://github.com/caarlos0/env as ENV parser.
Using https://github.com/sindresorhus/github-markdown-css for Markdown CSS

2017-2020

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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