api

package
v0.0.0-...-ff0bbfa Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2018 License: MIT, Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIP

GetIP returns a user's public facing IP address (IPv4 OR IPv6).

By default, it will return the IP address in plain text, but can also return data in both JSON and JSONP if requested to.

func MethodNotAllowed

func MethodNotAllowed(w http.ResponseWriter, r *http.Request)

MethodNotAllowed renders a method not allowed response for invalid request types.

func NotFound

func NotFound(w http.ResponseWriter, r *http.Request)

NotFound renders a not found response for invalid API endpoints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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