geocodingpb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_geocoding_proto protoreflect.FileDescriptor

Functions

func RegisterGeocodeServer

func RegisterGeocodeServer(s *grpc.Server, srv GeocodeServer)

Types

type GeocodeClient

type GeocodeClient interface {
	Geocode(ctx context.Context, in *GeocodeRequest, opts ...grpc.CallOption) (*GeocodeReply, error)
}

GeocodeClient is the client API for Geocode service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGeocodeClient

func NewGeocodeClient(cc grpc.ClientConnInterface) GeocodeClient

type GeocodeReply

type GeocodeReply struct {
	Latitude         float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude        float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
	FormattedAddress string  `protobuf:"bytes,3,opt,name=formattedAddress,proto3" json:"formattedAddress,omitempty"`
	// contains filtered or unexported fields
}

func (*GeocodeReply) Descriptor deprecated

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

Deprecated: Use GeocodeReply.ProtoReflect.Descriptor instead.

func (*GeocodeReply) GetFormattedAddress

func (x *GeocodeReply) GetFormattedAddress() string

func (*GeocodeReply) GetLatitude

func (x *GeocodeReply) GetLatitude() float64

func (*GeocodeReply) GetLongitude

func (x *GeocodeReply) GetLongitude() float64

func (*GeocodeReply) ProtoMessage

func (*GeocodeReply) ProtoMessage()

func (*GeocodeReply) ProtoReflect added in v0.1.0

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

func (*GeocodeReply) Reset

func (x *GeocodeReply) Reset()

func (*GeocodeReply) String

func (x *GeocodeReply) String() string

type GeocodeRequest

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

func (*GeocodeRequest) Descriptor deprecated

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

Deprecated: Use GeocodeRequest.ProtoReflect.Descriptor instead.

func (*GeocodeRequest) GetLocation

func (x *GeocodeRequest) GetLocation() string

func (*GeocodeRequest) ProtoMessage

func (*GeocodeRequest) ProtoMessage()

func (*GeocodeRequest) ProtoReflect added in v0.1.0

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

func (*GeocodeRequest) Reset

func (x *GeocodeRequest) Reset()

func (*GeocodeRequest) String

func (x *GeocodeRequest) String() string

type GeocodeServer

type GeocodeServer interface {
	Geocode(context.Context, *GeocodeRequest) (*GeocodeReply, error)
}

GeocodeServer is the server API for Geocode service.

type UnimplementedGeocodeServer added in v0.1.0

type UnimplementedGeocodeServer struct {
}

UnimplementedGeocodeServer can be embedded to have forward compatible implementations.

func (*UnimplementedGeocodeServer) Geocode added in v0.1.0

Jump to

Keyboard shortcuts

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