api

package
v0.0.0-...-c866eea Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Log is the global logger

Functions

This section is empty.

Types

type Response

type Response interface {
	ToJSON() string
	ToTXT() string
	ToXML() string
	// contains filtered or unexported methods
}

Response define common response methods.

func GetIP

func GetIP(ctx *fasthttp.RequestCtx) Response

GetIP handle the request and send back the public ip address.

Jump to

Keyboard shortcuts

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