locationpb

package
v1.32.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_protobuf_spec_connection_location_v1_proto protoreflect.FileDescriptor

Functions

func RegisterLocationServiceServer

func RegisterLocationServiceServer(s *grpc.Server, srv LocationServiceServer)

Types

type Location

type Location struct {
	Country string  `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"`
	City    string  `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
	Lat     float32 `protobuf:"fixed32,3,opt,name=lat,proto3" json:"lat,omitempty"`
	Long    float32 `protobuf:"fixed32,4,opt,name=long,proto3" json:"long,omitempty"`
	// contains filtered or unexported fields
}

func (*Location) Descriptor deprecated

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

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetCity

func (x *Location) GetCity() string

func (*Location) GetCountry

func (x *Location) GetCountry() string

func (*Location) GetLat

func (x *Location) GetLat() float32

func (*Location) GetLong

func (x *Location) GetLong() float32

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 LocationServiceClient

type LocationServiceClient interface {
	SearchLocations(ctx context.Context, in *SearchLocationsRequest, opts ...grpc.CallOption) (*SearchLocationResponse, error)
}

LocationServiceClient is the client API for LocationService service.

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

type LocationServiceServer

type LocationServiceServer interface {
	SearchLocations(context.Context, *SearchLocationsRequest) (*SearchLocationResponse, error)
}

LocationServiceServer is the server API for LocationService service.

type SearchLocationResponse

type SearchLocationResponse struct {
	Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchLocationResponse) Descriptor deprecated

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

Deprecated: Use SearchLocationResponse.ProtoReflect.Descriptor instead.

func (*SearchLocationResponse) GetLocations

func (x *SearchLocationResponse) GetLocations() []*Location

func (*SearchLocationResponse) ProtoMessage

func (*SearchLocationResponse) ProtoMessage()

func (*SearchLocationResponse) ProtoReflect

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

func (*SearchLocationResponse) Reset

func (x *SearchLocationResponse) Reset()

func (*SearchLocationResponse) String

func (x *SearchLocationResponse) String() string

type SearchLocationsRequest

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

func (*SearchLocationsRequest) Descriptor deprecated

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

Deprecated: Use SearchLocationsRequest.ProtoReflect.Descriptor instead.

func (*SearchLocationsRequest) GetText

func (x *SearchLocationsRequest) GetText() string

func (*SearchLocationsRequest) ProtoMessage

func (*SearchLocationsRequest) ProtoMessage()

func (*SearchLocationsRequest) ProtoReflect

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

func (*SearchLocationsRequest) Reset

func (x *SearchLocationsRequest) Reset()

func (*SearchLocationsRequest) String

func (x *SearchLocationsRequest) String() string

type UnimplementedLocationServiceServer

type UnimplementedLocationServiceServer struct {
}

UnimplementedLocationServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedLocationServiceServer) SearchLocations

Jump to

Keyboard shortcuts

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