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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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