timezone

package
v0.0.0-...-c5d5a31 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package timezone retrieves timezone info from lat/lon coordinates

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	Fetch(lat, lon float64) (string, error)
}

Fetcher lays out methods to retrieve timezone data

type JiveData

type JiveData struct {
	HTTPClient *http.Client
	Key        string
}

JiveData holds settings for the Jive Data API

func (*JiveData) Fetch

func (j *JiveData) Fetch(lat, lon float64) (string, error)

Fetch retrieves the timezone from Jive Data

type TZLookup

type TZLookup struct {
	TZ timezone.TimezoneInterface
}

TZLookup holds settings for timezoneLookup

func (*TZLookup) Fetch

func (t *TZLookup) Fetch(lat, lon float64) (string, error)

Fetch retrieves the timezone from a local database

Jump to

Keyboard shortcuts

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