Documentation ¶
Index ¶
- Variables
- func RegisterVelocityPlayerTransporterServer(s grpc.ServiceRegistrar, srv VelocityPlayerTransporterServer)
- type TransportRequest
- func (*TransportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TransportRequest) GetPlayerIds() []string
- func (x *TransportRequest) GetServer() *server_discovery.ConnectableServer
- func (*TransportRequest) ProtoMessage()
- func (x *TransportRequest) ProtoReflect() protoreflect.Message
- func (x *TransportRequest) Reset()
- func (x *TransportRequest) String() string
- type UnimplementedVelocityPlayerTransporterServer
- type UnsafeVelocityPlayerTransporterServer
- type VelocityPlayerTransporterClient
- type VelocityPlayerTransporterServer
Constants ¶
This section is empty.
Variables ¶
var File_velocity_velocity_player_transporter_proto protoreflect.FileDescriptor
var VelocityPlayerTransporter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "towerdefence.cc.service.velocity.player_transporter.VelocityPlayerTransporter", HandlerType: (*VelocityPlayerTransporterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendToServer", Handler: _VelocityPlayerTransporter_SendToServer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "velocity/velocity_player_transporter.proto", }
VelocityPlayerTransporter_ServiceDesc is the grpc.ServiceDesc for VelocityPlayerTransporter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVelocityPlayerTransporterServer ¶
func RegisterVelocityPlayerTransporterServer(s grpc.ServiceRegistrar, srv VelocityPlayerTransporterServer)
Types ¶
type TransportRequest ¶
type TransportRequest struct { Server *server_discovery.ConnectableServer `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` PlayerIds []string `protobuf:"bytes,2,rep,name=player_ids,json=playerIds,proto3" json:"player_ids,omitempty"` // contains filtered or unexported fields }
func (*TransportRequest) Descriptor
deprecated
func (*TransportRequest) Descriptor() ([]byte, []int)
Deprecated: Use TransportRequest.ProtoReflect.Descriptor instead.
func (*TransportRequest) GetPlayerIds ¶
func (x *TransportRequest) GetPlayerIds() []string
func (*TransportRequest) GetServer ¶
func (x *TransportRequest) GetServer() *server_discovery.ConnectableServer
func (*TransportRequest) ProtoMessage ¶
func (*TransportRequest) ProtoMessage()
func (*TransportRequest) ProtoReflect ¶
func (x *TransportRequest) ProtoReflect() protoreflect.Message
func (*TransportRequest) Reset ¶
func (x *TransportRequest) Reset()
func (*TransportRequest) String ¶
func (x *TransportRequest) String() string
type UnimplementedVelocityPlayerTransporterServer ¶
type UnimplementedVelocityPlayerTransporterServer struct { }
UnimplementedVelocityPlayerTransporterServer must be embedded to have forward compatible implementations.
func (UnimplementedVelocityPlayerTransporterServer) SendToServer ¶
func (UnimplementedVelocityPlayerTransporterServer) SendToServer(context.Context, *TransportRequest) (*emptypb.Empty, error)
type UnsafeVelocityPlayerTransporterServer ¶
type UnsafeVelocityPlayerTransporterServer interface {
// contains filtered or unexported methods
}
UnsafeVelocityPlayerTransporterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VelocityPlayerTransporterServer will result in compilation errors.
type VelocityPlayerTransporterClient ¶
type VelocityPlayerTransporterClient interface {
SendToServer(ctx context.Context, in *TransportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
VelocityPlayerTransporterClient is the client API for VelocityPlayerTransporter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewVelocityPlayerTransporterClient ¶
func NewVelocityPlayerTransporterClient(cc grpc.ClientConnInterface) VelocityPlayerTransporterClient
type VelocityPlayerTransporterServer ¶
type VelocityPlayerTransporterServer interface { SendToServer(context.Context, *TransportRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
VelocityPlayerTransporterServer is the server API for VelocityPlayerTransporter service. All implementations must embed UnimplementedVelocityPlayerTransporterServer for forward compatibility