data

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKey

func GetKey(entityType string, keyPart ...string) string

GetKey returns a key to be used in the storage system

Types

type ZipGeo

type ZipGeo struct {
	Zipcode   int     `json:"zipcode"`   // US zipcode
	Latitude  float64 `json:"latitude"`  // Latitude
	Longitude float64 `json:"longitude"` // Longitude
	Version   string  `json:"version"`   // Service version
}

ZipGeo defines a zipcode -> lat,long lookup result

type ZipGeoService

type ZipGeoService struct{}

ZipGeoService is a lookup service for zipcode->lat,long data

func (ZipGeoService) GetLatLong

func (s ZipGeoService) GetLatLong(ctx context.Context, zipcode string) (ZipGeo, error)

GetWeatherReport gets the weather report

Jump to

Keyboard shortcuts

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