Documentation ¶
Index ¶
- func Mod(s string) int64
- func RPCBroadcastRequest(playerID int64, msgCode uint16, protoData protoreflect.ProtoMessage)
- func RPCCall(nodeName string, playerID int64, msgCode uint16, ...)
- func Start(nodeName string, ip string, port int64)
- type Reference
- type RpcClientService
- func (*RpcClientService) RPCCallPush(request service.IServiceRequest, msg *rpc.RPCCallPush) error
- func (*RpcClientService) RPCHeartbeatResponse(request service.IServiceRequest, msg *rpc.HeartbeatResponse) error
- func (*RpcClientService) RPCLoginConflictPush(request service.IServiceRequest, msg *rpc.LoginConflictPush) error
- func (*RpcClientService) RPCLoginResponse(request service.IServiceRequest, msg *rpc.LoginResponse) error
- func (*RpcClientService) RPCLogoutResponse(request service.IServiceRequest, msg *rpc.LogoutResponse) error
- func (*RpcClientService) RouteForRPCCallPush() (string, uint32)
- func (*RpcClientService) RouteForRPCHeartbeatResponse() (string, uint32)
- func (*RpcClientService) RouteForRPCLoginConflictPush() (string, uint32)
- func (*RpcClientService) RouteForRPCLoginResponse() (string, uint32)
- func (*RpcClientService) RouteForRPCLogoutResponse() (string, uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RPCBroadcastRequest ¶ added in v1.0.7
func RPCBroadcastRequest(playerID int64, msgCode uint16, protoData protoreflect.ProtoMessage)
RPCBroadcastRequest 调用master
func RPCCall ¶
func RPCCall(nodeName string, playerID int64, msgCode uint16, protoData protoreflect.ProtoMessage)
RPCCall 调用master
Types ¶
type Reference ¶
type Reference struct {
// contains filtered or unexported fields
}
type RpcClientService ¶
type RpcClientService struct{}
func NewService ¶
func NewService() *RpcClientService
func (*RpcClientService) RPCCallPush ¶
func (*RpcClientService) RPCCallPush(request service.IServiceRequest, msg *rpc.RPCCallPush) error
func (*RpcClientService) RPCHeartbeatResponse ¶
func (*RpcClientService) RPCHeartbeatResponse(request service.IServiceRequest, msg *rpc.HeartbeatResponse) error
func (*RpcClientService) RPCLoginConflictPush ¶
func (*RpcClientService) RPCLoginConflictPush(request service.IServiceRequest, msg *rpc.LoginConflictPush) error
func (*RpcClientService) RPCLoginResponse ¶
func (*RpcClientService) RPCLoginResponse(request service.IServiceRequest, msg *rpc.LoginResponse) error
func (*RpcClientService) RPCLogoutResponse ¶
func (*RpcClientService) RPCLogoutResponse(request service.IServiceRequest, msg *rpc.LogoutResponse) error
func (*RpcClientService) RouteForRPCCallPush ¶
func (*RpcClientService) RouteForRPCCallPush() (string, uint32)
RouteForRPCCallPush 处理服务器推送的RPC调用
func (*RpcClientService) RouteForRPCHeartbeatResponse ¶
func (*RpcClientService) RouteForRPCHeartbeatResponse() (string, uint32)
RouteForRPCHeartbeatResponse 心跳
func (*RpcClientService) RouteForRPCLoginConflictPush ¶
func (*RpcClientService) RouteForRPCLoginConflictPush() (string, uint32)
RouteForRPCLoginConflictPush 登录冲突
func (*RpcClientService) RouteForRPCLoginResponse ¶
func (*RpcClientService) RouteForRPCLoginResponse() (string, uint32)
RouteForRPCLoginResponse 登录
func (*RpcClientService) RouteForRPCLogoutResponse ¶
func (*RpcClientService) RouteForRPCLogoutResponse() (string, uint32)
RouteForRPCLogoutResponse 登出
Click to show internal directories.
Click to hide internal directories.