Documentation ¶
Index ¶
- type Client
- func (c *Client) City(ctx context.Context, address string, includeISP bool) (*entity.City, error)
- func (c *Client) CityLite(ctx context.Context, address, lang string) (*entity.CityLite, error)
- func (c *Client) Close()
- func (c *Client) Country(ctx context.Context, address string) (*entity.Country, error)
- func (c *Client) GeoNameCities(ctx context.Context, filter entity.GeoNameFilter) ([]*entity.GeoName, error)
- func (c *Client) GeoNameContinents(ctx context.Context) []*entity.GeoNameContinent
- func (c *Client) GeoNameCountries(ctx context.Context, filter entity.GeoNameFilter) ([]*entity.GeoNameCountry, error)
- func (c *Client) GeoNameSubdivisions(ctx context.Context, filter entity.GeoNameFilter) ([]*entity.GeoNameAdminSubdivision, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GeoNameCities ¶
func (*Client) GeoNameContinents ¶
func (c *Client) GeoNameContinents(ctx context.Context) []*entity.GeoNameContinent
func (*Client) GeoNameCountries ¶
func (c *Client) GeoNameCountries(ctx context.Context, filter entity.GeoNameFilter) ([]*entity.GeoNameCountry, error)
func (*Client) GeoNameSubdivisions ¶
func (c *Client) GeoNameSubdivisions(ctx context.Context, filter entity.GeoNameFilter) ([]*entity.GeoNameAdminSubdivision, error)
Click to show internal directories.
Click to hide internal directories.