api

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Unlicense Imports: 8 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 JSON, JSONP, and XML 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