server

package
v0.0.0-...-5b44b94 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_velocity_velocity_server_proto protoreflect.FileDescriptor
View Source
var VelocityServer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "towerdefence.cc.service.velocity.server.VelocityServer",
	HandlerType: (*VelocityServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SwapTowerDefence",
			Handler:    _VelocityServer_SwapTowerDefence_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "velocity/velocity_server.proto",
}

VelocityServer_ServiceDesc is the grpc.ServiceDesc for VelocityServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterVelocityServerServer

func RegisterVelocityServerServer(s grpc.ServiceRegistrar, srv VelocityServerServer)

Types

type TowerDefenceSwapRequest

type TowerDefenceSwapRequest struct {
	PlayerId  string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	QuickJoin bool   `protobuf:"varint,2,opt,name=quick_join,json=quickJoin,proto3" json:"quick_join,omitempty"`
	// contains filtered or unexported fields
}

func (*TowerDefenceSwapRequest) Descriptor deprecated

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

Deprecated: Use TowerDefenceSwapRequest.ProtoReflect.Descriptor instead.

func (*TowerDefenceSwapRequest) GetPlayerId

func (x *TowerDefenceSwapRequest) GetPlayerId() string

func (*TowerDefenceSwapRequest) GetQuickJoin

func (x *TowerDefenceSwapRequest) GetQuickJoin() bool

func (*TowerDefenceSwapRequest) ProtoMessage

func (*TowerDefenceSwapRequest) ProtoMessage()

func (*TowerDefenceSwapRequest) ProtoReflect

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

func (*TowerDefenceSwapRequest) Reset

func (x *TowerDefenceSwapRequest) Reset()

func (*TowerDefenceSwapRequest) String

func (x *TowerDefenceSwapRequest) String() string

type UnimplementedVelocityServerServer

type UnimplementedVelocityServerServer struct {
}

UnimplementedVelocityServerServer must be embedded to have forward compatible implementations.

func (UnimplementedVelocityServerServer) SwapTowerDefence

type UnsafeVelocityServerServer

type UnsafeVelocityServerServer interface {
	// contains filtered or unexported methods
}

UnsafeVelocityServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VelocityServerServer will result in compilation errors.

type VelocityServerClient

type VelocityServerClient interface {
	SwapTowerDefence(ctx context.Context, in *TowerDefenceSwapRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

VelocityServerClient is the client API for VelocityServer 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.

type VelocityServerServer

type VelocityServerServer interface {
	SwapTowerDefence(context.Context, *TowerDefenceSwapRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

VelocityServerServer is the server API for VelocityServer service. All implementations must embed UnimplementedVelocityServerServer for forward compatibility

Jump to

Keyboard shortcuts

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