manager

package
v0.0.0-...-860ddd4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ReadyChannel is a channel to know when the manager is ready
	ReadyChannel = make(chan int, 1)
	// ErrCountryDoesNotExist is a custom error
	ErrCountryDoesNotExist = errors.New("The country doesn't exist")
	// ErrLanguageDoesNotExist is a custom error
	ErrLanguageDoesNotExist = errors.New("The language doesn't exist")
)

Functions

func FindCountryFromLatAndLong

func FindCountryFromLatAndLong(lat float64, long float64) (code string, err error)

FindCountryFromLatAndLong allow you to know the contry code of a given latitude and longitude. If doesn't find any, the error will be set

func GetCountries

func GetCountries(languageCode string) (*model.Response, error)

GetCountries will returns all countries founded

func GetCountry

func GetCountry(countryCode string, languageCode string) (*model.Response, error)

GetCountry will return a row for a specific country (used to know where you are)

func GetPhonenumbers

func GetPhonenumbers(languageCode string) (*model.Response, error)

GetPhonenumbers will returns every phonenumbers founded with specific translations from the languageCode

func GetPhonenumbersForCountry

func GetPhonenumbersForCountry(languageCode string, countryCode string) (*model.Response, error)

GetPhonenumbersForCountry will returns every phonenumbers founded for a country code with specific translations from the languageCode

func Init

func Init()

Init is a function to prepare the service

Types

This section is empty.

Jump to

Keyboard shortcuts

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