Documentation ¶
Index ¶
- Variables
- func RegisterGateService(etyMgr *entity.EntityManager, impl GateService)
- type Gate
- type GateService
- type PingPong
- type RegisterClientRequest
- func (*RegisterClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterClientRequest) GetEntityID() uint64
- func (*RegisterClientRequest) ProtoMessage()
- func (x *RegisterClientRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterClientRequest) Reset()
- func (x *RegisterClientRequest) String() string
- type RegisterClientResponse
- func (*RegisterClientResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterClientResponse) GetEntityID() uint64
- func (*RegisterClientResponse) ProtoMessage()
- func (x *RegisterClientResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterClientResponse) Reset()
- func (x *RegisterClientResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_gate_proto protoreflect.FileDescriptor
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) 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) ProtoMessage ¶
func (*PingPong) ProtoMessage()
func (*PingPong) ProtoReflect ¶
func (x *PingPong) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.