Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
proto/geoipfix.proto
It has these top-level messages:
Place GetLocationRequest Location
Index ¶
- Variables
- func RegisterGeoipfixServer(s *grpc.Server, srv GeoipfixServer)
- type GeoipfixClient
- type GeoipfixServer
- type GetLocationRequest
- func (*GetLocationRequest) Descriptor() ([]byte, []int)
- func (m *GetLocationRequest) GetIpAddress() string
- func (m *GetLocationRequest) GetLanguage() string
- func (m *GetLocationRequest) Marshal() (dAtA []byte, err error)
- func (m *GetLocationRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetLocationRequest) ProtoMessage()
- func (m *GetLocationRequest) Reset()
- func (m *GetLocationRequest) Size() (n int)
- func (m *GetLocationRequest) String() string
- func (m *GetLocationRequest) Unmarshal(dAtA []byte) error
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (m *Location) GetCity() string
- func (m *Location) GetCountry() *Place
- func (m *Location) GetIpAddress() string
- func (m *Location) GetLatitude() float32
- func (m *Location) GetLongitude() float32
- func (m *Location) GetMetroCode() int64
- func (m *Location) GetRegion() *Place
- func (m *Location) GetTimeZone() string
- func (m *Location) GetZipCode() string
- func (m *Location) Marshal() (dAtA []byte, err error)
- func (m *Location) MarshalTo(dAtA []byte) (int, error)
- func (*Location) ProtoMessage()
- func (m *Location) Reset()
- func (m *Location) Size() (n int)
- func (m *Location) String() string
- func (m *Location) Unmarshal(dAtA []byte) error
- type Place
- func (*Place) Descriptor() ([]byte, []int)
- func (m *Place) GetCode() string
- func (m *Place) GetName() string
- func (m *Place) Marshal() (dAtA []byte, err error)
- func (m *Place) MarshalTo(dAtA []byte) (int, error)
- func (*Place) ProtoMessage()
- func (m *Place) Reset()
- func (m *Place) Size() (n int)
- func (m *Place) String() string
- func (m *Place) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthGeoipfix = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGeoipfix = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterGeoipfixServer ¶
func RegisterGeoipfixServer(s *grpc.Server, srv GeoipfixServer)
Types ¶
type GeoipfixClient ¶
type GeoipfixClient interface {
GetLocation(ctx context.Context, in *GetLocationRequest, opts ...grpc.CallOption) (*Location, error)
}
func NewGeoipfixClient ¶
func NewGeoipfixClient(cc *grpc.ClientConn) GeoipfixClient
type GeoipfixServer ¶
type GeoipfixServer interface {
GetLocation(context.Context, *GetLocationRequest) (*Location, error)
}
type GetLocationRequest ¶
type GetLocationRequest struct { IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"` }
func (*GetLocationRequest) Descriptor ¶
func (*GetLocationRequest) Descriptor() ([]byte, []int)
func (*GetLocationRequest) GetIpAddress ¶
func (m *GetLocationRequest) GetIpAddress() string
func (*GetLocationRequest) GetLanguage ¶
func (m *GetLocationRequest) GetLanguage() string
func (*GetLocationRequest) Marshal ¶
func (m *GetLocationRequest) Marshal() (dAtA []byte, err error)
func (*GetLocationRequest) MarshalTo ¶
func (m *GetLocationRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetLocationRequest) ProtoMessage ¶
func (*GetLocationRequest) ProtoMessage()
func (*GetLocationRequest) Reset ¶
func (m *GetLocationRequest) Reset()
func (*GetLocationRequest) Size ¶
func (m *GetLocationRequest) Size() (n int)
func (*GetLocationRequest) String ¶
func (m *GetLocationRequest) String() string
func (*GetLocationRequest) Unmarshal ¶
func (m *GetLocationRequest) Unmarshal(dAtA []byte) error
type Location ¶
type Location struct { IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` Country *Place `protobuf:"bytes,2,opt,name=country" json:"country,omitempty"` Region *Place `protobuf:"bytes,3,opt,name=region" json:"region,omitempty"` City string `protobuf:"bytes,4,opt,name=city,proto3" json:"city,omitempty"` ZipCode string `protobuf:"bytes,5,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"` TimeZone string `protobuf:"bytes,6,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` Latitude float32 `protobuf:"fixed32,7,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float32 `protobuf:"fixed32,8,opt,name=longitude,proto3" json:"longitude,omitempty"` MetroCode int64 `protobuf:"varint,9,opt,name=metro_code,json=metroCode,proto3" json:"metro_code,omitempty"` }
func (*Location) Descriptor ¶
func (*Location) GetCountry ¶
func (*Location) GetIpAddress ¶
func (*Location) GetLatitude ¶
func (*Location) GetLongitude ¶
func (*Location) GetMetroCode ¶
func (*Location) GetTimeZone ¶
func (*Location) GetZipCode ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
type Place ¶
type Place 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"` }
func (*Place) Descriptor ¶
func (*Place) ProtoMessage ¶
func (*Place) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.