Documentation
¶
Index ¶
- Variables
- func RegisterLocationServiceServer(s *grpc.Server, srv LocationServiceServer)
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetCity() string
- func (x *Location) GetCountry() string
- func (x *Location) GetLat() float32
- func (x *Location) GetLong() float32
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type LocationServiceClient
- type LocationServiceServer
- type SearchLocationResponse
- func (*SearchLocationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchLocationResponse) GetLocations() []*Location
- func (*SearchLocationResponse) ProtoMessage()
- func (x *SearchLocationResponse) ProtoReflect() protoreflect.Message
- func (x *SearchLocationResponse) Reset()
- func (x *SearchLocationResponse) String() string
- type SearchLocationsRequest
- func (*SearchLocationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchLocationsRequest) GetText() string
- func (*SearchLocationsRequest) ProtoMessage()
- func (x *SearchLocationsRequest) ProtoReflect() protoreflect.Message
- func (x *SearchLocationsRequest) Reset()
- func (x *SearchLocationsRequest) String() string
- type UnimplementedLocationServiceServer
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) GetCountry ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
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.
func NewLocationServiceClient ¶
func NewLocationServiceClient(cc grpc.ClientConnInterface) LocationServiceClient
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 ¶
func (*UnimplementedLocationServiceServer) SearchLocations(context.Context, *SearchLocationsRequest) (*SearchLocationResponse, error)
Click to show internal directories.
Click to hide internal directories.