api

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package api implements HTTP handlers targeted at API or programmable consumers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TimeZoneHandler

func TimeZoneHandler(db *geoip2.Reader) http.Handler

TimeZoneHandler returns a `http.Handler` instance that will return the timezone for a given IP address. Addresses are inferred from a "?address={IPADDRESS}" parameter or from the IP address of the requestor in that order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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