services

package
v0.0.0-...-a413825 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBool

func FormatBool(b bool) string

FormatBool transforms a boolean into a string

Types

type GeoLocator

type GeoLocator interface {
	Geolocate(ctx context.Context, accessPoints []maps.WiFiAccessPoint) (*maps.GeolocationResult, error)
	ListRestaurants(ctx context.Context, searchRequest *maps.NearbySearchRequest) (maps.PlacesSearchResponse, error)
	PlaceDetails(ctx context.Context, detailsRequest *maps.PlaceDetailsRequest) (domain.Place, error)
}

GeoLocator ...

type Locate

type Locate struct {
	// contains filtered or unexported fields
}

Locate ...

func NewGeolocatorWith

func NewGeolocatorWith(google GeoLocator) Locate

NewGeolocatorWith ...

func (Locate) FetchLocation

func (l Locate) FetchLocation(ctx context.Context, airportRows []string) (*maps.GeolocationResult, error)

FetchLocation ...

func (Locate) FetchRestaurant

func (l Locate) FetchRestaurant(ctx context.Context, req domain.SearchRequest) (domain.Place, error)

FetchRestaurant ...

type Wifi

type Wifi struct {
	BSSID   string
	Channel int
}

Wifi ...

Jump to

Keyboard shortcuts

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