userpb

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

Deprecated: Use Location.ProtoReflect.Descriptor instead.

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 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) UpdateLocation added in v0.4.11

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.

Jump to

Keyboard shortcuts

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