proto

package
v0.0.0-...-c9c0493 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_grpc_geoip_proto protoreflect.FileDescriptor
View Source
var File_api_grpc_geoname_proto protoreflect.FileDescriptor
View Source
var GeoIpService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "geoip.GeoIpService",
	HandlerType: (*GeoIpServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Country",
			Handler:    _GeoIpService_Country_Handler,
		},
		{
			MethodName: "City",
			Handler:    _GeoIpService_City_Handler,
		},
		{
			MethodName: "CityLite",
			Handler:    _GeoIpService_CityLite_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/grpc/geoip.proto",
}

GeoIpService_ServiceDesc is the grpc.ServiceDesc for GeoIpService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var GeoNameService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "geoname.GeoNameService",
	HandlerType: (*GeoNameServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Continent",
			Handler:       _GeoNameService_Continent_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Country",
			Handler:       _GeoNameService_Country_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "City",
			Handler:       _GeoNameService_City_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Subdivision",
			Handler:       _GeoNameService_Subdivision_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "api/grpc/geoname.proto",
}

GeoNameService_ServiceDesc is the grpc.ServiceDesc for GeoNameService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterGeoIpServiceServer

func RegisterGeoIpServiceServer(s grpc.ServiceRegistrar, srv GeoIpServiceServer)

func RegisterGeoNameServiceServer

func RegisterGeoNameServiceServer(s grpc.ServiceRegistrar, srv GeoNameServiceServer)

Types

type City

type City struct {
	GeoNameId uint32            `protobuf:"varint,1,opt,name=geo_name_id,json=geoNameId,proto3" json:"geo_name_id,omitempty"`
	Names     map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*City) Descriptor deprecated

func (*City) Descriptor() ([]byte, []int)

Deprecated: Use City.ProtoReflect.Descriptor instead.

func (*City) GetGeoNameId

func (x *City) GetGeoNameId() uint32

func (*City) GetNames

func (x *City) GetNames() map[string]string

func (*City) ProtoMessage

func (*City) ProtoMessage()

func (*City) ProtoReflect

func (x *City) ProtoReflect() protoreflect.Message

func (*City) Reset

func (x *City) Reset()

func (*City) String

func (x *City) String() string

type CityLiteRequest

type CityLiteRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Lang    string `protobuf:"bytes,2,opt,name=lang,proto3" json:"lang,omitempty"`
	// contains filtered or unexported fields
}

func (*CityLiteRequest) Descriptor deprecated

func (*CityLiteRequest) Descriptor() ([]byte, []int)

Deprecated: Use CityLiteRequest.ProtoReflect.Descriptor instead.

func (*CityLiteRequest) GetAddress

func (x *CityLiteRequest) GetAddress() string

func (*CityLiteRequest) GetLang

func (x *CityLiteRequest) GetLang() string

func (*CityLiteRequest) ProtoMessage

func (*CityLiteRequest) ProtoMessage()

func (*CityLiteRequest) ProtoReflect

func (x *CityLiteRequest) ProtoReflect() protoreflect.Message

func (*CityLiteRequest) Reset

func (x *CityLiteRequest) Reset()

func (*CityLiteRequest) String

func (x *CityLiteRequest) String() string

type CityLiteResponse

type CityLiteResponse struct {
	City     *CityLiteResponse_City     `protobuf:"bytes,1,opt,name=city,proto3" json:"city,omitempty"`
	Country  *CityLiteResponse_Country  `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
	Location *CityLiteResponse_Location `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*CityLiteResponse) Descriptor deprecated

func (*CityLiteResponse) Descriptor() ([]byte, []int)

Deprecated: Use CityLiteResponse.ProtoReflect.Descriptor instead.

func (*CityLiteResponse) GetCity

func (*CityLiteResponse) GetCountry

func (x *CityLiteResponse) GetCountry() *CityLiteResponse_Country

func (*CityLiteResponse) GetLocation

func (x *CityLiteResponse) GetLocation() *CityLiteResponse_Location

func (*CityLiteResponse) ProtoMessage

func (*CityLiteResponse) ProtoMessage()

func (*CityLiteResponse) ProtoReflect

func (x *CityLiteResponse) ProtoReflect() protoreflect.Message

func (*CityLiteResponse) Reset

func (x *CityLiteResponse) Reset()

func (*CityLiteResponse) String

func (x *CityLiteResponse) String() string

type CityLiteResponse_City

type CityLiteResponse_City struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CityLiteResponse_City) Descriptor deprecated

func (*CityLiteResponse_City) Descriptor() ([]byte, []int)

Deprecated: Use CityLiteResponse_City.ProtoReflect.Descriptor instead.

func (*CityLiteResponse_City) GetName

func (x *CityLiteResponse_City) GetName() string

func (*CityLiteResponse_City) ProtoMessage

func (*CityLiteResponse_City) ProtoMessage()

func (*CityLiteResponse_City) ProtoReflect

func (x *CityLiteResponse_City) ProtoReflect() protoreflect.Message

func (*CityLiteResponse_City) Reset

func (x *CityLiteResponse_City) Reset()

func (*CityLiteResponse_City) String

func (x *CityLiteResponse_City) String() string

type CityLiteResponse_Country

type CityLiteResponse_Country struct {
	IsoCode string `protobuf:"bytes,3,opt,name=iso_code,json=isoCode,proto3" json:"iso_code,omitempty"`
	Name    string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CityLiteResponse_Country) Descriptor deprecated

func (*CityLiteResponse_Country) Descriptor() ([]byte, []int)

Deprecated: Use CityLiteResponse_Country.ProtoReflect.Descriptor instead.

func (*CityLiteResponse_Country) GetIsoCode

func (x *CityLiteResponse_Country) GetIsoCode() string

func (*CityLiteResponse_Country) GetName

func (x *CityLiteResponse_Country) GetName() string

func (*CityLiteResponse_Country) ProtoMessage

func (*CityLiteResponse_Country) ProtoMessage()

func (*CityLiteResponse_Country) ProtoReflect

func (x *CityLiteResponse_Country) ProtoReflect() protoreflect.Message

func (*CityLiteResponse_Country) Reset

func (x *CityLiteResponse_Country) Reset()

func (*CityLiteResponse_Country) String

func (x *CityLiteResponse_Country) String() string

type CityLiteResponse_Location

type CityLiteResponse_Location struct {
	Latitude  float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
	TimeZone  string  `protobuf:"bytes,5,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
	// contains filtered or unexported fields
}

func (*CityLiteResponse_Location) Descriptor deprecated

func (*CityLiteResponse_Location) Descriptor() ([]byte, []int)

Deprecated: Use CityLiteResponse_Location.ProtoReflect.Descriptor instead.

func (*CityLiteResponse_Location) GetLatitude

func (x *CityLiteResponse_Location) GetLatitude() float64

func (*CityLiteResponse_Location) GetLongitude

func (x *CityLiteResponse_Location) GetLongitude() float64

func (*CityLiteResponse_Location) GetTimeZone

func (x *CityLiteResponse_Location) GetTimeZone() string

func (*CityLiteResponse_Location) ProtoMessage

func (*CityLiteResponse_Location) ProtoMessage()

func (*CityLiteResponse_Location) ProtoReflect

func (*CityLiteResponse_Location) Reset

func (x *CityLiteResponse_Location) Reset()

func (*CityLiteResponse_Location) String

func (x *CityLiteResponse_Location) String() string

type CityRequest

type CityRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Isp     *bool  `protobuf:"varint,2,opt,name=isp,proto3,oneof" json:"isp,omitempty"`
	// contains filtered or unexported fields
}

func (*CityRequest) Descriptor deprecated

func (*CityRequest) Descriptor() ([]byte, []int)

Deprecated: Use CityRequest.ProtoReflect.Descriptor instead.

func (*CityRequest) GetAddress

func (x *CityRequest) GetAddress() string

func (*CityRequest) GetIsp

func (x *CityRequest) GetIsp() bool

func (*CityRequest) ProtoMessage

func (*CityRequest) ProtoMessage()

func (*CityRequest) ProtoReflect

func (x *CityRequest) ProtoReflect() protoreflect.Message

func (*CityRequest) Reset

func (x *CityRequest) Reset()

func (*CityRequest) String

func (x *CityRequest) String() string

type CityResponse

type CityResponse struct {
	City               *City               `protobuf:"bytes,1,opt,name=city,proto3" json:"city,omitempty"`
	Continent          *Continent          `protobuf:"bytes,2,opt,name=continent,proto3" json:"continent,omitempty"`
	Country            *Country            `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"`
	Location           *Location           `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
	Postal             *Postal             `protobuf:"bytes,5,opt,name=postal,proto3" json:"postal,omitempty"`
	RegisteredCountry  *Country            `protobuf:"bytes,6,opt,name=registered_country,json=registeredCountry,proto3" json:"registered_country,omitempty"`
	RepresentedCountry *RepresentedCountry `protobuf:"bytes,7,opt,name=represented_country,json=representedCountry,proto3" json:"represented_country,omitempty"`
	Subdivisions       []*Subdivision      `protobuf:"bytes,8,rep,name=subdivisions,proto3" json:"subdivisions,omitempty"`
	Traits             *Traits             `protobuf:"bytes,9,opt,name=traits,proto3" json:"traits,omitempty"`
	Isp                *ISP                `protobuf:"bytes,10,opt,name=isp,proto3,oneof" json:"isp,omitempty"`
	// contains filtered or unexported fields
}

func (*CityResponse) Descriptor deprecated

func (*CityResponse) Descriptor() ([]byte, []int)

Deprecated: Use CityResponse.ProtoReflect.Descriptor instead.

func (*CityResponse) GetCity

func (x *CityResponse) GetCity() *City

func (*CityResponse) GetContinent

func (x *CityResponse) GetContinent() *Continent

func (*CityResponse) GetCountry

func (x *CityResponse) GetCountry() *Country

func (*CityResponse) GetIsp

func (x *CityResponse) GetIsp() *ISP

func (*CityResponse) GetLocation

func (x *CityResponse) GetLocation() *Location

func (*CityResponse) GetPostal

func (x *CityResponse) GetPostal() *Postal

func (*CityResponse) GetRegisteredCountry

func (x *CityResponse) GetRegisteredCountry() *Country

func (*CityResponse) GetRepresentedCountry

func (x *CityResponse) GetRepresentedCountry() *RepresentedCountry

func (*CityResponse) GetSubdivisions

func (x *CityResponse) GetSubdivisions() []*Subdivision

func (*CityResponse) GetTraits

func (x *CityResponse) GetTraits() *Traits

func (*CityResponse) ProtoMessage

func (*CityResponse) ProtoMessage()

func (*CityResponse) ProtoReflect

func (x *CityResponse) ProtoReflect() protoreflect.Message

func (*CityResponse) Reset

func (x *CityResponse) Reset()

func (*CityResponse) String

func (x *CityResponse) String() string

type Continent

type Continent struct {
	Code      string            `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	GeoNameId uint32            `protobuf:"varint,2,opt,name=geo_name_id,json=geoNameId,proto3" json:"geo_name_id,omitempty"`
	Names     map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Continent) Descriptor deprecated

func (*Continent) Descriptor() ([]byte, []int)

Deprecated: Use Continent.ProtoReflect.Descriptor instead.

func (*Continent) GetCode

func (x *Continent) GetCode() string

func (*Continent) GetGeoNameId

func (x *Continent) GetGeoNameId() uint32

func (*Continent) GetNames

func (x *Continent) GetNames() map[string]string

func (*Continent) ProtoMessage

func (*Continent) ProtoMessage()

func (*Continent) ProtoReflect

func (x *Continent) ProtoReflect() protoreflect.Message

func (*Continent) Reset

func (x *Continent) Reset()

func (*Continent) String

func (x *Continent) String() string

type Country

type Country struct {
	GeoNameId         uint32            `protobuf:"varint,1,opt,name=geo_name_id,json=geoNameId,proto3" json:"geo_name_id,omitempty"`
	IsInEuropeanUnion bool              `protobuf:"varint,2,opt,name=is_in_european_union,json=isInEuropeanUnion,proto3" json:"is_in_european_union,omitempty"`
	IsoCode           string            `protobuf:"bytes,3,opt,name=iso_code,json=isoCode,proto3" json:"iso_code,omitempty"`
	Names             map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Country) Descriptor deprecated

func (*Country) Descriptor() ([]byte, []int)

Deprecated: Use Country.ProtoReflect.Descriptor instead.

func (*Country) GetGeoNameId

func (x *Country) GetGeoNameId() uint32

func (*Country) GetIsInEuropeanUnion

func (x *Country) GetIsInEuropeanUnion() bool

func (*Country) GetIsoCode

func (x *Country) GetIsoCode() string

func (*Country) GetNames

func (x *Country) GetNames() map[string]string

func (*Country) ProtoMessage

func (*Country) ProtoMessage()

func (*Country) ProtoReflect

func (x *Country) ProtoReflect() protoreflect.Message

func (*Country) Reset

func (x *Country) Reset()

func (*Country) String

func (x *Country) String() string

type CountryRequest

type CountryRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*CountryRequest) Descriptor deprecated

func (*CountryRequest) Descriptor() ([]byte, []int)

Deprecated: Use CountryRequest.ProtoReflect.Descriptor instead.

func (*CountryRequest) GetAddress

func (x *CountryRequest) GetAddress() string

func (*CountryRequest) ProtoMessage

func (*CountryRequest) ProtoMessage()

func (*CountryRequest) ProtoReflect

func (x *CountryRequest) ProtoReflect() protoreflect.Message

func (*CountryRequest) Reset

func (x *CountryRequest) Reset()

func (*CountryRequest) String

func (x *CountryRequest) String() string

type CountryResponse

type CountryResponse struct {
	Continent          *Continent          `protobuf:"bytes,1,opt,name=continent,proto3" json:"continent,omitempty"`
	Country            *Country            `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
	RegisteredCountry  *Country            `protobuf:"bytes,3,opt,name=registered_country,json=registeredCountry,proto3" json:"registered_country,omitempty"`
	RepresentedCountry *RepresentedCountry `protobuf:"bytes,4,opt,name=represented_country,json=representedCountry,proto3" json:"represented_country,omitempty"`
	Traits             *Traits             `protobuf:"bytes,5,opt,name=traits,proto3" json:"traits,omitempty"`
	// contains filtered or unexported fields
}

func (*CountryResponse) Descriptor deprecated

func (*CountryResponse) Descriptor() ([]byte, []int)

Deprecated: Use CountryResponse.ProtoReflect.Descriptor instead.

func (*CountryResponse) GetContinent

func (x *CountryResponse) GetContinent() *Continent

func (*CountryResponse) GetCountry

func (x *CountryResponse) GetCountry() *Country

func (*CountryResponse) GetRegisteredCountry

func (x *CountryResponse) GetRegisteredCountry() *Country

func (*CountryResponse) GetRepresentedCountry

func (x *CountryResponse) GetRepresentedCountry() *RepresentedCountry

func (*CountryResponse) GetTraits

func (x *CountryResponse) GetTraits() *Traits

func (*CountryResponse) ProtoMessage

func (*CountryResponse) ProtoMessage()

func (*CountryResponse) ProtoReflect

func (x *CountryResponse) ProtoReflect() protoreflect.Message

func (*CountryResponse) Reset

func (x *CountryResponse) Reset()

func (*CountryResponse) String

func (x *CountryResponse) String() string

type GeoIpServiceClient

type GeoIpServiceClient interface {
	Country(ctx context.Context, in *CountryRequest, opts ...grpc.CallOption) (*CountryResponse, error)
	City(ctx context.Context, in *CityRequest, opts ...grpc.CallOption) (*CityResponse, error)
	CityLite(ctx context.Context, in *CityLiteRequest, opts ...grpc.CallOption) (*CityLiteResponse, error)
}

GeoIpServiceClient is the client API for GeoIpService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type GeoIpServiceServer

type GeoIpServiceServer interface {
	Country(context.Context, *CountryRequest) (*CountryResponse, error)
	City(context.Context, *CityRequest) (*CityResponse, error)
	CityLite(context.Context, *CityLiteRequest) (*CityLiteResponse, error)
	// contains filtered or unexported methods
}

GeoIpServiceServer is the server API for GeoIpService service. All implementations must embed UnimplementedGeoIpServiceServer for forward compatibility

type GeoNameCityResponse

type GeoNameCityResponse struct {
	GeoNameId             uint32  `protobuf:"varint,1,opt,name=geo_name_id,json=geoNameId,proto3" json:"geo_name_id,omitempty"`
	Name                  string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	AsciiName             string  `protobuf:"bytes,3,opt,name=ascii_name,json=asciiName,proto3" json:"ascii_name,omitempty"`
	Latitude              float64 `protobuf:"fixed64,4,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude             float64 `protobuf:"fixed64,5,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Class                 string  `protobuf:"bytes,6,opt,name=class,proto3" json:"class,omitempty"`
	Code                  string  `protobuf:"bytes,7,opt,name=code,proto3" json:"code,omitempty"`
	CountryCode           string  `protobuf:"bytes,8,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
	AlternateCountryCodes string  `` /* 126-byte string literal not displayed */
	Admin1Code            string  `protobuf:"bytes,10,opt,name=admin1_code,json=admin1Code,proto3" json:"admin1_code,omitempty"`
	Admin2Code            string  `protobuf:"bytes,11,opt,name=admin2_code,json=admin2Code,proto3" json:"admin2_code,omitempty"`
	Admin3Code            string  `protobuf:"bytes,12,opt,name=admin3_code,json=admin3Code,proto3" json:"admin3_code,omitempty"`
	Admin4Code            string  `protobuf:"bytes,13,opt,name=admin4_code,json=admin4Code,proto3" json:"admin4_code,omitempty"`
	Population            int64   `protobuf:"varint,14,opt,name=population,proto3" json:"population,omitempty"`
	Elevation             int64   `protobuf:"varint,15,opt,name=elevation,proto3" json:"elevation,omitempty"`
	DigitalElevationModel int64   `` /* 128-byte string literal not displayed */
	TimeZone              string  `protobuf:"bytes,17,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
	// contains filtered or unexported fields
}

func (*GeoNameCityResponse) Descriptor deprecated

func (*GeoNameCityResponse) Descriptor() ([]byte, []int)

Deprecated: Use GeoNameCityResponse.ProtoReflect.Descriptor instead.

func (*GeoNameCityResponse) GetAdmin1Code

func (x *GeoNameCityResponse) GetAdmin1Code() string

func (*GeoNameCityResponse) GetAdmin2Code

func (x *GeoNameCityResponse) GetAdmin2Code() string

func (*GeoNameCityResponse) GetAdmin3Code

func (x *GeoNameCityResponse) GetAdmin3Code() string

func (*GeoNameCityResponse) GetAdmin4Code

func (x *GeoNameCityResponse) GetAdmin4Code() string

func (*GeoNameCityResponse) GetAlternateCountryCodes

func (x *GeoNameCityResponse) GetAlternateCountryCodes() string

func (*GeoNameCityResponse) GetAsciiName

func (x *GeoNameCityResponse) GetAsciiName() string

func (*GeoNameCityResponse) GetClass

func (x *GeoNameCityResponse) GetClass() string

func (*GeoNameCityResponse) GetCode

func (x *GeoNameCityResponse) GetCode() string

func (*GeoNameCityResponse) GetCountryCode

func (x *GeoNameCityResponse) GetCountryCode() string

func (*GeoNameCityResponse) GetDigitalElevationModel

func (x *GeoNameCityResponse) GetDigitalElevationModel() int64

func (*GeoNameCityResponse) GetElevation

func (x *GeoNameCityResponse) GetElevation() int64

func (*GeoNameCityResponse) GetGeoNameId

func (x *GeoNameCityResponse) GetGeoNameId() uint32

func (*GeoNameCityResponse) GetLatitude

func (x *GeoNameCityResponse) GetLatitude() float64

func (*GeoNameCityResponse) GetLongitude

func (x *GeoNameCityResponse) GetLongitude() float64

func (*GeoNameCityResponse) GetName

func (x *GeoNameCityResponse) GetName() string

func (*GeoNameCityResponse) GetPopulation

func (x *GeoNameCityResponse) GetPopulation() int64

func (*GeoNameCityResponse) GetTimeZone

func (x *GeoNameCityResponse) GetTimeZone() string

func (*GeoNameCityResponse) ProtoMessage

func (*GeoNameCityResponse) ProtoMessage()

func (*GeoNameCityResponse) ProtoReflect

func (x *GeoNameCityResponse) ProtoReflect() protoreflect.Message

func (*GeoNameCityResponse) Reset

func (x *GeoNameCityResponse) Reset()

func (*GeoNameCityResponse) String

func (x *GeoNameCityResponse) String() string

type GeoNameContinentResponse

type GeoNameContinentResponse struct {
	Code      string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	GeoNameId uint32 `protobuf:"varint,3,opt,name=geo_name_id,json=geoNameId,proto3" json:"geo_name_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GeoNameContinentResponse) Descriptor deprecated

func (*GeoNameContinentResponse) Descriptor() ([]byte, []int)

Deprecated: Use GeoNameContinentResponse.ProtoReflect.Descriptor instead.

func (*GeoNameContinentResponse) GetCode

func (x *GeoNameContinentResponse) GetCode() string

func (*GeoNameContinentResponse) GetGeoNameId

func (x *GeoNameContinentResponse) GetGeoNameId() uint32

func (*GeoNameContinentResponse) GetName

func (x *GeoNameContinentResponse) GetName() string

func (*GeoNameContinentResponse) ProtoMessage

func (*GeoNameContinentResponse) ProtoMessage()

func (*GeoNameContinentResponse) ProtoReflect

func (x *GeoNameContinentResponse) ProtoReflect() protoreflect.Message

func (*GeoNameContinentResponse) Reset

func (x *GeoNameContinentResponse) Reset()

func (*GeoNameContinentResponse) String

func (x *GeoNameContinentResponse) String() string

type GeoNameCountryResponse

type GeoNameCountryResponse struct {
	IsoCode            string  `protobuf:"bytes,1,opt,name=iso_code,json=isoCode,proto3" json:"iso_code,omitempty"`
	Iso3Code           string  `protobuf:"bytes,2,opt,name=iso3_code,json=iso3Code,proto3" json:"iso3_code,omitempty"`
	IsoNumeric         string  `protobuf:"bytes,3,opt,name=iso_numeric,json=isoNumeric,proto3" json:"iso_numeric,omitempty"`
	Fips               string  `protobuf:"bytes,4,opt,name=fips,proto3" json:"fips,omitempty"`
	Name               string  `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	Capital            string  `protobuf:"bytes,6,opt,name=capital,proto3" json:"capital,omitempty"`
	Area               float64 `protobuf:"fixed64,7,opt,name=area,proto3" json:"area,omitempty"`
	Population         int64   `protobuf:"varint,8,opt,name=population,proto3" json:"population,omitempty"`
	Continent          string  `protobuf:"bytes,9,opt,name=continent,proto3" json:"continent,omitempty"`
	Tld                string  `protobuf:"bytes,10,opt,name=tld,proto3" json:"tld,omitempty"`
	CurrencyCode       string  `protobuf:"bytes,11,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
	CurrencyName       string  `protobuf:"bytes,12,opt,name=currency_name,json=currencyName,proto3" json:"currency_name,omitempty"`
	Phone              string  `protobuf:"bytes,13,opt,name=phone,proto3" json:"phone,omitempty"`
	PostalCodeFormat   string  `protobuf:"bytes,14,opt,name=postal_code_format,json=postalCodeFormat,proto3" json:"postal_code_format,omitempty"`
	PostalCodeRegex    string  `protobuf:"bytes,15,opt,name=postal_code_regex,json=postalCodeRegex,proto3" json:"postal_code_regex,omitempty"`
	Languages          string  `protobuf:"bytes,16,opt,name=languages,proto3" json:"languages,omitempty"`
	GeoNameId          uint32  `protobuf:"varint,17,opt,name=geo_name_id,json=geoNameId,proto3" json:"geo_name_id,omitempty"`
	Neighbours         string  `protobuf:"bytes,18,opt,name=neighbours,proto3" json:"neighbours,omitempty"`
	EquivalentFipsCode string  `protobuf:"bytes,19,opt,name=equivalent_fips_code,json=equivalentFipsCode,proto3" json:"equivalent_fips_code,omitempty"`
	// contains filtered or unexported fields
}

func (*GeoNameCountryResponse) Descriptor deprecated

func (*GeoNameCountryResponse) Descriptor() ([]byte, []int)

Deprecated: Use GeoNameCountryResponse.ProtoReflect.Descriptor instead.

func (*GeoNameCountryResponse) GetArea

func (x *GeoNameCountryResponse) GetArea() float64

func (*GeoNameCountryResponse) GetCapital

func (x *GeoNameCountryResponse) GetCapital() string

func (*GeoNameCountryResponse) GetContinent

func (x *GeoNameCountryResponse) GetContinent() string

func (*GeoNameCountryResponse) GetCurrencyCode

func (x *GeoNameCountryResponse) GetCurrencyCode() string

func (*GeoNameCountryResponse) GetCurrencyName

func (x *GeoNameCountryResponse) GetCurrencyName() string

func (*GeoNameCountryResponse) GetEquivalentFipsCode

func (x *GeoNameCountryResponse) GetEquivalentFipsCode() string

func (*GeoNameCountryResponse) GetFips

func (x *GeoNameCountryResponse) GetFips() string

func (*GeoNameCountryResponse) GetGeoNameId

func (x *GeoNameCountryResponse) GetGeoNameId() uint32

func (*GeoNameCountryResponse) GetIso3Code

func (x *GeoNameCountryResponse) GetIso3Code() string

func (*GeoNameCountryResponse) GetIsoCode

func (x *GeoNameCountryResponse) GetIsoCode() string

func (*GeoNameCountryResponse) GetIsoNumeric

func (x *GeoNameCountryResponse) GetIsoNumeric() string

func (*GeoNameCountryResponse) GetLanguages

func (x *GeoNameCountryResponse) GetLanguages() string

func (*GeoNameCountryResponse) GetName

func (x *GeoNameCountryResponse) GetName() string

func (*GeoNameCountryResponse) GetNeighbours

func (x *GeoNameCountryResponse) GetNeighbours() string

func (*GeoNameCountryResponse) GetPhone

func (x *GeoNameCountryResponse) GetPhone() string

func (*GeoNameCountryResponse) GetPopulation

func (x *GeoNameCountryResponse) GetPopulation() int64

func (*GeoNameCountryResponse) GetPostalCodeFormat

func (x *GeoNameCountryResponse) GetPostalCodeFormat() string

func (*GeoNameCountryResponse) GetPostalCodeRegex

func (x *GeoNameCountryResponse) GetPostalCodeRegex() string

func (*GeoNameCountryResponse) GetTld

func (x *GeoNameCountryResponse) GetTld() string

func (*GeoNameCountryResponse) ProtoMessage

func (*GeoNameCountryResponse) ProtoMessage()

func (*GeoNameCountryResponse) ProtoReflect

func (x *GeoNameCountryResponse) ProtoReflect() protoreflect.Message

func (*GeoNameCountryResponse) Reset

func (x *GeoNameCountryResponse) Reset()

func (*GeoNameCountryResponse) String

func (x *GeoNameCountryResponse) String() string

type GeoNameRequest

type GeoNameRequest struct {
	CountryCodes []string `protobuf:"bytes,1,rep,name=country_codes,json=countryCodes,proto3" json:"country_codes,omitempty"`
	NamePrefix   string   `protobuf:"bytes,2,opt,name=name_prefix,json=namePrefix,proto3" json:"name_prefix,omitempty"`
	Limit        uint32   `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	GeoNameIds   []uint32 `protobuf:"varint,4,rep,packed,name=geo_name_ids,json=geoNameIds,proto3" json:"geo_name_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*GeoNameRequest) Descriptor deprecated

func (*GeoNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use GeoNameRequest.ProtoReflect.Descriptor instead.

func (*GeoNameRequest) GetCountryCodes

func (x *GeoNameRequest) GetCountryCodes() []string

func (*GeoNameRequest) GetGeoNameIds

func (x *GeoNameRequest) GetGeoNameIds() []uint32

func (*GeoNameRequest) GetLimit

func (x *GeoNameRequest) GetLimit() uint32

func (*GeoNameRequest) GetNamePrefix

func (x *GeoNameRequest) GetNamePrefix() string

func (*GeoNameRequest) ProtoMessage

func (*GeoNameRequest) ProtoMessage()

func (*GeoNameRequest) ProtoReflect

func (x *GeoNameRequest) ProtoReflect() protoreflect.Message

func (*GeoNameRequest) Reset

func (x *GeoNameRequest) Reset()

func (*GeoNameRequest) String

func (x *GeoNameRequest) String() string

type GeoNameServiceClient

GeoNameServiceClient is the client API for GeoNameService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type GeoNameServiceServer

type GeoNameServiceServer interface {
	Continent(*GeoNameRequest, GeoNameService_ContinentServer) error
	Country(*GeoNameRequest, GeoNameService_CountryServer) error
	City(*GeoNameRequest, GeoNameService_CityServer) error
	Subdivision(*GeoNameRequest, GeoNameService_SubdivisionServer) error
	// contains filtered or unexported methods
}

GeoNameServiceServer is the server API for GeoNameService service. All implementations must embed UnimplementedGeoNameServiceServer for forward compatibility

type GeoNameService_CityClient

type GeoNameService_CityClient interface {
	Recv() (*GeoNameCityResponse, error)
	grpc.ClientStream
}

type GeoNameService_CityServer

type GeoNameService_CityServer interface {
	Send(*GeoNameCityResponse) error
	grpc.ServerStream
}

type GeoNameService_ContinentClient

type GeoNameService_ContinentClient interface {
	Recv() (*GeoNameContinentResponse, error)
	grpc.ClientStream
}

type GeoNameService_ContinentServer

type GeoNameService_ContinentServer interface {
	Send(*GeoNameContinentResponse) error
	grpc.ServerStream
}

type GeoNameService_CountryClient

type GeoNameService_CountryClient interface {
	Recv() (*GeoNameCountryResponse, error)
	grpc.ClientStream
}

type GeoNameService_CountryServer

type GeoNameService_CountryServer interface {
	Send(*GeoNameCountryResponse) error
	grpc.ServerStream
}

type GeoNameService_SubdivisionClient

type GeoNameService_SubdivisionClient interface {
	Recv() (*GeoNameSubdivisionResponse, error)
	grpc.ClientStream
}

type GeoNameService_SubdivisionServer

type GeoNameService_SubdivisionServer interface {
	Send(*GeoNameSubdivisionResponse) error
	grpc.ServerStream
}

type GeoNameSubdivisionResponse

type GeoNameSubdivisionResponse struct {
	Code      string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	AsciiName string `protobuf:"bytes,3,opt,name=ascii_name,json=asciiName,proto3" json:"ascii_name,omitempty"`
	GeoNameId uint32 `protobuf:"varint,4,opt,name=geo_name_id,json=geoNameId,proto3" json:"geo_name_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GeoNameSubdivisionResponse) Descriptor deprecated

func (*GeoNameSubdivisionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GeoNameSubdivisionResponse.ProtoReflect.Descriptor instead.

func (*GeoNameSubdivisionResponse) GetAsciiName

func (x *GeoNameSubdivisionResponse) GetAsciiName() string

func (*GeoNameSubdivisionResponse) GetCode

func (x *GeoNameSubdivisionResponse) GetCode() string

func (*GeoNameSubdivisionResponse) GetGeoNameId

func (x *GeoNameSubdivisionResponse) GetGeoNameId() uint32

func (*GeoNameSubdivisionResponse) GetName

func (x *GeoNameSubdivisionResponse) GetName() string

func (*GeoNameSubdivisionResponse) ProtoMessage

func (*GeoNameSubdivisionResponse) ProtoMessage()

func (*GeoNameSubdivisionResponse) ProtoReflect

func (*GeoNameSubdivisionResponse) Reset

func (x *GeoNameSubdivisionResponse) Reset()

func (*GeoNameSubdivisionResponse) String

func (x *GeoNameSubdivisionResponse) String() string

type ISP

type ISP struct {
	AutonomousSystemOrganization string `` /* 147-byte string literal not displayed */
	Isp                          string `protobuf:"bytes,2,opt,name=isp,proto3" json:"isp,omitempty"`
	MobileCountryCode            string `protobuf:"bytes,3,opt,name=mobile_country_code,json=mobileCountryCode,proto3" json:"mobile_country_code,omitempty"`
	MobileNetworkCode            string `protobuf:"bytes,4,opt,name=mobile_network_code,json=mobileNetworkCode,proto3" json:"mobile_network_code,omitempty"`
	Organization                 string `protobuf:"bytes,5,opt,name=organization,proto3" json:"organization,omitempty"`
	AutonomousSystemNumber       uint32 `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ISP) Descriptor deprecated

func (*ISP) Descriptor() ([]byte, []int)

Deprecated: Use ISP.ProtoReflect.Descriptor instead.

func (*ISP) GetAutonomousSystemNumber

func (x *ISP) GetAutonomousSystemNumber() uint32

func (*ISP) GetAutonomousSystemOrganization

func (x *ISP) GetAutonomousSystemOrganization() string

func (*ISP) GetIsp

func (x *ISP) GetIsp() string

func (*ISP) GetMobileCountryCode

func (x *ISP) GetMobileCountryCode() string

func (*ISP) GetMobileNetworkCode

func (x *ISP) GetMobileNetworkCode() string

func (*ISP) GetOrganization

func (x *ISP) GetOrganization() string

func (*ISP) ProtoMessage

func (*ISP) ProtoMessage()

func (*ISP) ProtoReflect

func (x *ISP) ProtoReflect() protoreflect.Message

func (*ISP) Reset

func (x *ISP) Reset()

func (*ISP) String

func (x *ISP) String() string

type Location

type Location struct {
	AccuracyRadius uint32  `protobuf:"varint,1,opt,name=accuracy_radius,json=accuracyRadius,proto3" json:"accuracy_radius,omitempty"`
	Latitude       float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude      float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
	MetroCode      uint32  `protobuf:"varint,4,opt,name=metro_code,json=metroCode,proto3" json:"metro_code,omitempty"`
	TimeZone       string  `protobuf:"bytes,5,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
	// contains filtered or unexported fields
}

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetAccuracyRadius

func (x *Location) GetAccuracyRadius() uint32

func (*Location) GetLatitude

func (x *Location) GetLatitude() float64

func (*Location) GetLongitude

func (x *Location) GetLongitude() float64

func (*Location) GetMetroCode

func (x *Location) GetMetroCode() uint32

func (*Location) GetTimeZone

func (x *Location) GetTimeZone() string

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type Postal

type Postal struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*Postal) Descriptor deprecated

func (*Postal) Descriptor() ([]byte, []int)

Deprecated: Use Postal.ProtoReflect.Descriptor instead.

func (*Postal) GetCode

func (x *Postal) GetCode() string

func (*Postal) ProtoMessage

func (*Postal) ProtoMessage()

func (*Postal) ProtoReflect

func (x *Postal) ProtoReflect() protoreflect.Message

func (*Postal) Reset

func (x *Postal) Reset()

func (*Postal) String

func (x *Postal) String() string

type RepresentedCountry

type RepresentedCountry struct {
	GeoNameId         uint32            `protobuf:"varint,1,opt,name=geo_name_id,json=geoNameId,proto3" json:"geo_name_id,omitempty"`
	IsInEuropeanUnion bool              `protobuf:"varint,2,opt,name=is_in_european_union,json=isInEuropeanUnion,proto3" json:"is_in_european_union,omitempty"`
	IsoCode           string            `protobuf:"bytes,3,opt,name=iso_code,json=isoCode,proto3" json:"iso_code,omitempty"`
	Names             map[string]string `` /* 151-byte string literal not displayed */
	Type              string            `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*RepresentedCountry) Descriptor deprecated

func (*RepresentedCountry) Descriptor() ([]byte, []int)

Deprecated: Use RepresentedCountry.ProtoReflect.Descriptor instead.

func (*RepresentedCountry) GetGeoNameId

func (x *RepresentedCountry) GetGeoNameId() uint32

func (*RepresentedCountry) GetIsInEuropeanUnion

func (x *RepresentedCountry) GetIsInEuropeanUnion() bool

func (*RepresentedCountry) GetIsoCode

func (x *RepresentedCountry) GetIsoCode() string

func (*RepresentedCountry) GetNames

func (x *RepresentedCountry) GetNames() map[string]string

func (*RepresentedCountry) GetType

func (x *RepresentedCountry) GetType() string

func (*RepresentedCountry) ProtoMessage

func (*RepresentedCountry) ProtoMessage()

func (*RepresentedCountry) ProtoReflect

func (x *RepresentedCountry) ProtoReflect() protoreflect.Message

func (*RepresentedCountry) Reset

func (x *RepresentedCountry) Reset()

func (*RepresentedCountry) String

func (x *RepresentedCountry) String() string

type Subdivision

type Subdivision struct {
	GeoNameId uint32            `protobuf:"varint,1,opt,name=geo_name_id,json=geoNameId,proto3" json:"geo_name_id,omitempty"`
	IsoCode   string            `protobuf:"bytes,2,opt,name=iso_code,json=isoCode,proto3" json:"iso_code,omitempty"`
	Names     map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Subdivision) Descriptor deprecated

func (*Subdivision) Descriptor() ([]byte, []int)

Deprecated: Use Subdivision.ProtoReflect.Descriptor instead.

func (*Subdivision) GetGeoNameId

func (x *Subdivision) GetGeoNameId() uint32

func (*Subdivision) GetIsoCode

func (x *Subdivision) GetIsoCode() string

func (*Subdivision) GetNames

func (x *Subdivision) GetNames() map[string]string

func (*Subdivision) ProtoMessage

func (*Subdivision) ProtoMessage()

func (*Subdivision) ProtoReflect

func (x *Subdivision) ProtoReflect() protoreflect.Message

func (*Subdivision) Reset

func (x *Subdivision) Reset()

func (*Subdivision) String

func (x *Subdivision) String() string

type Traits

type Traits struct {
	IsAnonymousProxy    bool `protobuf:"varint,1,opt,name=is_anonymous_proxy,json=isAnonymousProxy,proto3" json:"is_anonymous_proxy,omitempty"`
	IsSatelliteProvider bool `protobuf:"varint,2,opt,name=is_satellite_provider,json=isSatelliteProvider,proto3" json:"is_satellite_provider,omitempty"`
	// contains filtered or unexported fields
}

func (*Traits) Descriptor deprecated

func (*Traits) Descriptor() ([]byte, []int)

Deprecated: Use Traits.ProtoReflect.Descriptor instead.

func (*Traits) GetIsAnonymousProxy

func (x *Traits) GetIsAnonymousProxy() bool

func (*Traits) GetIsSatelliteProvider

func (x *Traits) GetIsSatelliteProvider() bool

func (*Traits) ProtoMessage

func (*Traits) ProtoMessage()

func (*Traits) ProtoReflect

func (x *Traits) ProtoReflect() protoreflect.Message

func (*Traits) Reset

func (x *Traits) Reset()

func (*Traits) String

func (x *Traits) String() string

type UnimplementedGeoIpServiceServer

type UnimplementedGeoIpServiceServer struct {
}

UnimplementedGeoIpServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGeoIpServiceServer) City

func (UnimplementedGeoIpServiceServer) CityLite

func (UnimplementedGeoIpServiceServer) Country

type UnimplementedGeoNameServiceServer

type UnimplementedGeoNameServiceServer struct {
}

UnimplementedGeoNameServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGeoNameServiceServer) City

func (UnimplementedGeoNameServiceServer) Continent

func (UnimplementedGeoNameServiceServer) Country

func (UnimplementedGeoNameServiceServer) Subdivision

type UnsafeGeoIpServiceServer

type UnsafeGeoIpServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeGeoIpServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GeoIpServiceServer will result in compilation errors.

type UnsafeGeoNameServiceServer

type UnsafeGeoNameServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeGeoNameServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GeoNameServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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