gatepb

package
v0.0.0-...-d853fe5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GateServiceDesc = entity.EntityDesc{
	TypeName:    "gatepb.GateService",
	HandlerType: (*GateService)(nil),
	Methods: map[string]entity.MethodDesc{

		"RegisterClient": {
			MethodName:   "RegisterClient",
			Handler:      _GateService_RegisterClient_Remote_Handler,
			LocalHandler: _GateService_RegisterClient_Local_Handler,
		},

		"UnregisterClient": {
			MethodName:   "UnregisterClient",
			Handler:      _GateService_UnregisterClient_Remote_Handler,
			LocalHandler: _GateService_UnregisterClient_Local_Handler,
		},

		"Ping": {
			MethodName:   "Ping",
			Handler:      _GateService_Ping_Remote_Handler,
			LocalHandler: _GateService_Ping_Local_Handler,
		},
	},

	Metadata: "gate.proto",
}

Functions

func RegisterGateService

func RegisterGateService(etyMgr *entity.EntityManager, impl GateService)

Types

type Gate

type Gate struct {
}

func NewGateClient

func NewGateClient() *Gate

func (*Gate) Ping

func (t *Gate) Ping(c entity.Context, req *PingPong) (*PingPong, error)

func (*Gate) RegisterClient

func (t *Gate) RegisterClient(c entity.Context, req *RegisterClientRequest) (*RegisterClientResponse, error)

func (*Gate) UnregisterClient

func (t *Gate) UnregisterClient(c entity.Context, req *RegisterClientRequest) error

type GateService

type GateService interface {
	entity.IService

	// RegisterClient
	RegisterClient(c entity.Context, req *RegisterClientRequest) (*RegisterClientResponse, error)

	// UnregisterClient
	UnregisterClient(c entity.Context, req *RegisterClientRequest) error

	// Ping
	Ping(c entity.Context, req *PingPong) (*PingPong, error)
}

GateService

type PingPong

type PingPong struct {
	// contains filtered or unexported fields
}

func (*PingPong) Descriptor deprecated

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

Deprecated: Use PingPong.ProtoReflect.Descriptor instead.

func (*PingPong) ProtoMessage

func (*PingPong) ProtoMessage()

func (*PingPong) ProtoReflect

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

func (*PingPong) Reset

func (x *PingPong) Reset()

func (*PingPong) String

func (x *PingPong) String() string

type RegisterClientRequest

type RegisterClientRequest struct {
	EntityID uint64 `protobuf:"varint,1,opt,name=EntityID,proto3" json:"EntityID,omitempty" bson:"EntityID"`
	// contains filtered or unexported fields
}

func (*RegisterClientRequest) Descriptor deprecated

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

Deprecated: Use RegisterClientRequest.ProtoReflect.Descriptor instead.

func (*RegisterClientRequest) GetEntityID

func (x *RegisterClientRequest) GetEntityID() uint64

func (*RegisterClientRequest) ProtoMessage

func (*RegisterClientRequest) ProtoMessage()

func (*RegisterClientRequest) ProtoReflect

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

func (*RegisterClientRequest) Reset

func (x *RegisterClientRequest) Reset()

func (*RegisterClientRequest) String

func (x *RegisterClientRequest) String() string

type RegisterClientResponse

type RegisterClientResponse struct {
	EntityID uint64 `protobuf:"varint,1,opt,name=EntityID,proto3" json:"EntityID,omitempty" bson:"EntityID"`
	// contains filtered or unexported fields
}

func (*RegisterClientResponse) Descriptor deprecated

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

Deprecated: Use RegisterClientResponse.ProtoReflect.Descriptor instead.

func (*RegisterClientResponse) GetEntityID

func (x *RegisterClientResponse) GetEntityID() uint64

func (*RegisterClientResponse) ProtoMessage

func (*RegisterClientResponse) ProtoMessage()

func (*RegisterClientResponse) ProtoReflect

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

func (*RegisterClientResponse) Reset

func (x *RegisterClientResponse) Reset()

func (*RegisterClientResponse) String

func (x *RegisterClientResponse) String() string

Jump to

Keyboard shortcuts

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