Documentation
¶
Index ¶
- Variables
- func RegisterUserConnectionServiceServer(s *grpc.Server, srv UserConnectionServiceServer)
- type GetLocationRequest
- func (*GetLocationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLocationRequest) GetUserId() string
- func (*GetLocationRequest) ProtoMessage()
- func (x *GetLocationRequest) ProtoReflect() protoreflect.Message
- func (x *GetLocationRequest) Reset()
- func (x *GetLocationRequest) String() string
- type GetLocationResponse
- func (*GetLocationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLocationResponse) GetLocation() *Location
- func (*GetLocationResponse) ProtoMessage()
- func (x *GetLocationResponse) ProtoReflect() protoreflect.Message
- func (x *GetLocationResponse) Reset()
- func (x *GetLocationResponse) String() string
- type Location
- type UnimplementedUserConnectionServiceServer
- type UpdateLocationRequest
- func (*UpdateLocationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLocationRequest) GetLocation() *Location
- func (x *UpdateLocationRequest) GetUserId() string
- func (*UpdateLocationRequest) ProtoMessage()
- func (x *UpdateLocationRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateLocationRequest) Reset()
- func (x *UpdateLocationRequest) String() string
- type UserConnectionServiceClient
- type UserConnectionServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_protobuf_spec_connection_user_v1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUserConnectionServiceServer ¶ added in v0.4.11
func RegisterUserConnectionServiceServer(s *grpc.Server, srv UserConnectionServiceServer)
Types ¶
type GetLocationRequest ¶
type GetLocationRequest struct { UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*GetLocationRequest) Descriptor
deprecated
func (*GetLocationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLocationRequest.ProtoReflect.Descriptor instead.
func (*GetLocationRequest) GetUserId ¶
func (x *GetLocationRequest) GetUserId() string
func (*GetLocationRequest) ProtoMessage ¶
func (*GetLocationRequest) ProtoMessage()
func (*GetLocationRequest) ProtoReflect ¶
func (x *GetLocationRequest) ProtoReflect() protoreflect.Message
func (*GetLocationRequest) Reset ¶
func (x *GetLocationRequest) Reset()
func (*GetLocationRequest) String ¶
func (x *GetLocationRequest) String() string
type GetLocationResponse ¶
type GetLocationResponse struct { Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
func (*GetLocationResponse) Descriptor
deprecated
func (*GetLocationResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLocationResponse.ProtoReflect.Descriptor instead.
func (*GetLocationResponse) GetLocation ¶ added in v0.4.10
func (x *GetLocationResponse) GetLocation() *Location
func (*GetLocationResponse) ProtoMessage ¶
func (*GetLocationResponse) ProtoMessage()
func (*GetLocationResponse) ProtoReflect ¶
func (x *GetLocationResponse) ProtoReflect() protoreflect.Message
func (*GetLocationResponse) Reset ¶
func (x *GetLocationResponse) Reset()
func (*GetLocationResponse) String ¶
func (x *GetLocationResponse) String() string
type Location ¶
type Location struct { Lat float32 `protobuf:"fixed32,1,opt,name=lat,proto3" json:"lat,omitempty"` Long float32 `protobuf:"fixed32,2,opt,name=long,proto3" json:"long,omitempty"` // contains filtered or unexported fields }
func (*Location) Descriptor
deprecated
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type UnimplementedUserConnectionServiceServer ¶ added in v0.4.11
type UnimplementedUserConnectionServiceServer struct { }
UnimplementedUserConnectionServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserConnectionServiceServer) GetLanguagesSupported ¶ added in v0.4.11
func (*UnimplementedUserConnectionServiceServer) GetLanguagesSupported(context.Context, *GetLocationRequest) (*GetLocationResponse, error)
func (*UnimplementedUserConnectionServiceServer) UpdateLocation ¶ added in v0.4.11
func (*UnimplementedUserConnectionServiceServer) UpdateLocation(context.Context, *UpdateLocationRequest) (*empty.Empty, error)
type UpdateLocationRequest ¶
type UpdateLocationRequest struct { Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*UpdateLocationRequest) Descriptor
deprecated
func (*UpdateLocationRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLocationRequest.ProtoReflect.Descriptor instead.
func (*UpdateLocationRequest) GetLocation ¶ added in v0.4.10
func (x *UpdateLocationRequest) GetLocation() *Location
func (*UpdateLocationRequest) GetUserId ¶
func (x *UpdateLocationRequest) GetUserId() string
func (*UpdateLocationRequest) ProtoMessage ¶
func (*UpdateLocationRequest) ProtoMessage()
func (*UpdateLocationRequest) ProtoReflect ¶
func (x *UpdateLocationRequest) ProtoReflect() protoreflect.Message
func (*UpdateLocationRequest) Reset ¶
func (x *UpdateLocationRequest) Reset()
func (*UpdateLocationRequest) String ¶
func (x *UpdateLocationRequest) String() string
type UserConnectionServiceClient ¶ added in v0.4.11
type UserConnectionServiceClient interface { UpdateLocation(ctx context.Context, in *UpdateLocationRequest, opts ...grpc.CallOption) (*empty.Empty, error) GetLanguagesSupported(ctx context.Context, in *GetLocationRequest, opts ...grpc.CallOption) (*GetLocationResponse, error) }
UserConnectionServiceClient is the client API for UserConnectionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserConnectionServiceClient ¶ added in v0.4.11
func NewUserConnectionServiceClient(cc grpc.ClientConnInterface) UserConnectionServiceClient
type UserConnectionServiceServer ¶ added in v0.4.11
type UserConnectionServiceServer interface { UpdateLocation(context.Context, *UpdateLocationRequest) (*empty.Empty, error) GetLanguagesSupported(context.Context, *GetLocationRequest) (*GetLocationResponse, error) }
UserConnectionServiceServer is the server API for UserConnectionService service.
Click to show internal directories.
Click to hide internal directories.