Versions in this module Expand all Collapse all v0 v0.1.0 Jun 11, 2018 Changes in this version + var ErrIntOverflowGeoipfix = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthGeoipfix = fmt.Errorf("proto: negative length found during unmarshaling") + func RegisterGeoipfixServer(s *grpc.Server, srv GeoipfixServer) + type GeoipfixClient interface + GetLocation func(ctx context.Context, in *GetLocationRequest, opts ...grpc.CallOption) (*Location, error) + func NewGeoipfixClient(cc *grpc.ClientConn) GeoipfixClient + type GeoipfixServer interface + GetLocation func(context.Context, *GetLocationRequest) (*Location, error) + type GetLocationRequest struct + IpAddress string + Language string + func (*GetLocationRequest) Descriptor() ([]byte, []int) + func (*GetLocationRequest) ProtoMessage() + 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 (m *GetLocationRequest) Reset() + func (m *GetLocationRequest) Size() (n int) + func (m *GetLocationRequest) String() string + func (m *GetLocationRequest) Unmarshal(dAtA []byte) error + type Location struct + City string + Country *Place + IpAddress string + Latitude float32 + Longitude float32 + MetroCode int64 + Region *Place + TimeZone string + ZipCode string + func (*Location) Descriptor() ([]byte, []int) + func (*Location) ProtoMessage() + 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 (m *Location) Reset() + func (m *Location) Size() (n int) + func (m *Location) String() string + func (m *Location) Unmarshal(dAtA []byte) error + type Place struct + Code string + Name string + func (*Place) Descriptor() ([]byte, []int) + func (*Place) ProtoMessage() + 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 (m *Place) Reset() + func (m *Place) Size() (n int) + func (m *Place) String() string + func (m *Place) Unmarshal(dAtA []byte) error