proto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 7 Imported by: 2

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

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) Descriptor() ([]byte, []int)

func (*Location) GetCity

func (m *Location) GetCity() string

func (*Location) GetCountry

func (m *Location) GetCountry() *Place

func (*Location) GetIpAddress

func (m *Location) GetIpAddress() string

func (*Location) GetLatitude

func (m *Location) GetLatitude() float32

func (*Location) GetLongitude

func (m *Location) GetLongitude() float32

func (*Location) GetMetroCode

func (m *Location) GetMetroCode() int64

func (*Location) GetRegion

func (m *Location) GetRegion() *Place

func (*Location) GetTimeZone

func (m *Location) GetTimeZone() string

func (*Location) GetZipCode

func (m *Location) GetZipCode() string

func (*Location) Marshal

func (m *Location) Marshal() (dAtA []byte, err error)

func (*Location) MarshalTo

func (m *Location) MarshalTo(dAtA []byte) (int, error)

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) Size

func (m *Location) Size() (n int)

func (*Location) String

func (m *Location) String() string

func (*Location) Unmarshal

func (m *Location) Unmarshal(dAtA []byte) error

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) Descriptor() ([]byte, []int)

func (*Place) GetCode

func (m *Place) GetCode() string

func (*Place) GetName

func (m *Place) GetName() string

func (*Place) Marshal

func (m *Place) Marshal() (dAtA []byte, err error)

func (*Place) MarshalTo

func (m *Place) MarshalTo(dAtA []byte) (int, error)

func (*Place) ProtoMessage

func (*Place) ProtoMessage()

func (*Place) Reset

func (m *Place) Reset()

func (*Place) Size

func (m *Place) Size() (n int)

func (*Place) String

func (m *Place) String() string

func (*Place) Unmarshal

func (m *Place) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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