Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶ added in v1.9.1
type Fetcher interface { // GetByAgeBracket returns the demographics for the specified AgeBracket GetByAgeBracket(arguments bracket.Bracket) (count int) // GetByRegion returns the demographics grouped by region GetByRegion() (figures map[string]int) // Run updates demographics and refreshes them on a periodic basis Run(ctx context.Context) }
Fetcher interface for population data
type Server ¶ added in v1.4.0
Server imports the demographics data on a regular basis and exposes data APIs to callers
func (*Server) GetByAgeBracket ¶ added in v1.9.1
GetByAgeBracket returns the number of people within a specific age bracket. Set High to math.Inf(+1) to return all people older than a given age
func (*Server) GetByRegion ¶ added in v1.4.0
GetByRegion returns the number of people in each region
Click to show internal directories.
Click to hide internal directories.