client

package
v0.0.0-...-5f57c41 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(addr string, opts ...grpc.DialOption) (*Client, error)

func (*Client) City

func (c *Client) City(ctx context.Context, address string, includeISP bool) (*entity.City, error)

func (*Client) CityLite

func (c *Client) CityLite(ctx context.Context, address, lang string) (*entity.CityLite, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) Country

func (c *Client) Country(ctx context.Context, address string) (*entity.Country, error)

func (*Client) GeoNameCities

func (c *Client) GeoNameCities(ctx context.Context, filter entity.GeoNameFilter) ([]*entity.GeoName, error)

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)

Jump to

Keyboard shortcuts

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