Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeoIpService ¶
type GeoIpService interface { Country(ctx context.Context, address string) (*entity.Country, error) City(ctx context.Context, address string, includeISP bool) (*entity.City, error) CityLite(ctx context.Context, address string, lang string) (*entity.CityLite, error) MetaData(ctx context.Context, dbType service.DBType) (*entity.MetaData, error) Database(ctx context.Context, dbType service.DBType, format service.DumpFormat) (*entity.Database, error) }
type GeoNameService ¶
type GeoNameService interface { Continents(ctx context.Context) []*entity.GeoNameContinent Countries(ctx context.Context, filter entity.GeoNameFilter) ([]*entity.GeoNameCountry, error) Subdivisions(ctx context.Context, filter entity.GeoNameFilter) ([]*entity.GeoNameAdminSubdivision, error) Cities(ctx context.Context, filter entity.GeoNameFilter) ([]*entity.GeoName, error) Dump(ctx context.Context, format service.DumpFormat) ([]byte, error) }
Click to show internal directories.
Click to hide internal directories.