Documentation ¶
Index ¶
- Variables
- func NewGateServiceEndpoints() []*api.Endpoint
- func RegisterGateServiceHandler(s server.Server, hdlr GateServiceHandler, opts ...server.HandlerOption) error
- type GateEmptyMessage
- type GateService
- type GateServiceHandler
- type GateStatus
- type GetGateStatusReply
- func (*GetGateStatusReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetGateStatusReply) GetStatus() *GateStatus
- func (*GetGateStatusReply) ProtoMessage()
- func (x *GetGateStatusReply) ProtoReflect() protoreflect.Message
- func (x *GetGateStatusReply) Reset()
- func (x *GetGateStatusReply) String() string
- type SyncPlayerInfoReply
- func (*SyncPlayerInfoReply) Descriptor() ([]byte, []int)deprecated
- func (x *SyncPlayerInfoReply) GetInfo() *UserInfo
- func (*SyncPlayerInfoReply) ProtoMessage()
- func (x *SyncPlayerInfoReply) ProtoReflect() protoreflect.Message
- func (x *SyncPlayerInfoReply) Reset()
- func (x *SyncPlayerInfoReply) String() string
- type SyncPlayerInfoRequest
- func (*SyncPlayerInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncPlayerInfoRequest) GetInfo() *game.PlayerInfo
- func (x *SyncPlayerInfoRequest) GetUserId() int64
- func (*SyncPlayerInfoRequest) ProtoMessage()
- func (x *SyncPlayerInfoRequest) ProtoReflect() protoreflect.Message
- func (x *SyncPlayerInfoRequest) Reset()
- func (x *SyncPlayerInfoRequest) String() string
- type UpdateUserInfoRequest
- func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserInfoRequest) GetInfo() *UserInfo
- func (*UpdateUserInfoRequest) ProtoMessage()
- func (x *UpdateUserInfoRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserInfoRequest) Reset()
- func (x *UpdateUserInfoRequest) String() string
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetAccountId() int64
- func (x *UserInfo) GetGameId() int32
- func (x *UserInfo) GetPlayerId() int64
- func (x *UserInfo) GetPlayerLevel() int32
- func (x *UserInfo) GetPlayerName() string
- func (x *UserInfo) GetUserId() int64
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_gate_gate_proto protoreflect.FileDescriptor
Functions ¶
func NewGateServiceEndpoints ¶
func RegisterGateServiceHandler ¶
func RegisterGateServiceHandler(s server.Server, hdlr GateServiceHandler, opts ...server.HandlerOption) error
Types ¶
type GateEmptyMessage ¶
type GateEmptyMessage struct {
// contains filtered or unexported fields
}
func (*GateEmptyMessage) Descriptor
deprecated
func (*GateEmptyMessage) Descriptor() ([]byte, []int)
Deprecated: Use GateEmptyMessage.ProtoReflect.Descriptor instead.
func (*GateEmptyMessage) ProtoMessage ¶
func (*GateEmptyMessage) ProtoMessage()
func (*GateEmptyMessage) ProtoReflect ¶
func (x *GateEmptyMessage) ProtoReflect() protoreflect.Message
func (*GateEmptyMessage) Reset ¶
func (x *GateEmptyMessage) Reset()
func (*GateEmptyMessage) String ¶
func (x *GateEmptyMessage) String() string
type GateService ¶
type GateService interface { GetGateStatus(ctx context.Context, in *GateEmptyMessage, opts ...client.CallOption) (*GetGateStatusReply, error) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...client.CallOption) (*GateEmptyMessage, error) SyncPlayerInfo(ctx context.Context, in *SyncPlayerInfoRequest, opts ...client.CallOption) (*SyncPlayerInfoReply, error) }
func NewGateService ¶
func NewGateService(name string, c client.Client) GateService
type GateServiceHandler ¶
type GateServiceHandler interface { GetGateStatus(context.Context, *GateEmptyMessage, *GetGateStatusReply) error UpdateUserInfo(context.Context, *UpdateUserInfoRequest, *GateEmptyMessage) error SyncPlayerInfo(context.Context, *SyncPlayerInfoRequest, *SyncPlayerInfoReply) error }
type GateStatus ¶
type GateStatus struct { GateId int32 `protobuf:"varint,1,opt,name=gate_id,json=gateId,proto3" json:"gate_id,omitempty"` Health int32 `protobuf:"varint,2,opt,name=health,proto3" json:"health,omitempty"` // contains filtered or unexported fields }
func (*GateStatus) Descriptor
deprecated
func (*GateStatus) Descriptor() ([]byte, []int)
Deprecated: Use GateStatus.ProtoReflect.Descriptor instead.
func (*GateStatus) GetGateId ¶
func (x *GateStatus) GetGateId() int32
func (*GateStatus) GetHealth ¶
func (x *GateStatus) GetHealth() int32
func (*GateStatus) ProtoMessage ¶
func (*GateStatus) ProtoMessage()
func (*GateStatus) ProtoReflect ¶
func (x *GateStatus) ProtoReflect() protoreflect.Message
func (*GateStatus) Reset ¶
func (x *GateStatus) Reset()
func (*GateStatus) String ¶
func (x *GateStatus) String() string
type GetGateStatusReply ¶
type GetGateStatusReply struct { Status *GateStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*GetGateStatusReply) Descriptor
deprecated
func (*GetGateStatusReply) Descriptor() ([]byte, []int)
Deprecated: Use GetGateStatusReply.ProtoReflect.Descriptor instead.
func (*GetGateStatusReply) GetStatus ¶
func (x *GetGateStatusReply) GetStatus() *GateStatus
func (*GetGateStatusReply) ProtoMessage ¶
func (*GetGateStatusReply) ProtoMessage()
func (*GetGateStatusReply) ProtoReflect ¶
func (x *GetGateStatusReply) ProtoReflect() protoreflect.Message
func (*GetGateStatusReply) Reset ¶
func (x *GetGateStatusReply) Reset()
func (*GetGateStatusReply) String ¶
func (x *GetGateStatusReply) String() string
type SyncPlayerInfoReply ¶
type SyncPlayerInfoReply struct { Info *UserInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*SyncPlayerInfoReply) Descriptor
deprecated
func (*SyncPlayerInfoReply) Descriptor() ([]byte, []int)
Deprecated: Use SyncPlayerInfoReply.ProtoReflect.Descriptor instead.
func (*SyncPlayerInfoReply) GetInfo ¶
func (x *SyncPlayerInfoReply) GetInfo() *UserInfo
func (*SyncPlayerInfoReply) ProtoMessage ¶
func (*SyncPlayerInfoReply) ProtoMessage()
func (*SyncPlayerInfoReply) ProtoReflect ¶
func (x *SyncPlayerInfoReply) ProtoReflect() protoreflect.Message
func (*SyncPlayerInfoReply) Reset ¶
func (x *SyncPlayerInfoReply) Reset()
func (*SyncPlayerInfoReply) String ¶
func (x *SyncPlayerInfoReply) String() string
type SyncPlayerInfoRequest ¶
type SyncPlayerInfoRequest struct { UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId,omitempty"` Info *game.PlayerInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*SyncPlayerInfoRequest) Descriptor
deprecated
func (*SyncPlayerInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncPlayerInfoRequest.ProtoReflect.Descriptor instead.
func (*SyncPlayerInfoRequest) GetInfo ¶
func (x *SyncPlayerInfoRequest) GetInfo() *game.PlayerInfo
func (*SyncPlayerInfoRequest) GetUserId ¶
func (x *SyncPlayerInfoRequest) GetUserId() int64
func (*SyncPlayerInfoRequest) ProtoMessage ¶
func (*SyncPlayerInfoRequest) ProtoMessage()
func (*SyncPlayerInfoRequest) ProtoReflect ¶
func (x *SyncPlayerInfoRequest) ProtoReflect() protoreflect.Message
func (*SyncPlayerInfoRequest) Reset ¶
func (x *SyncPlayerInfoRequest) Reset()
func (*SyncPlayerInfoRequest) String ¶
func (x *SyncPlayerInfoRequest) String() string
type UpdateUserInfoRequest ¶
type UpdateUserInfoRequest struct { Info *UserInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserInfoRequest) Descriptor
deprecated
func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserInfoRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserInfoRequest) GetInfo ¶
func (x *UpdateUserInfoRequest) GetInfo() *UserInfo
func (*UpdateUserInfoRequest) ProtoMessage ¶
func (*UpdateUserInfoRequest) ProtoMessage()
func (*UpdateUserInfoRequest) ProtoReflect ¶
func (x *UpdateUserInfoRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserInfoRequest) Reset ¶
func (x *UpdateUserInfoRequest) Reset()
func (*UpdateUserInfoRequest) String ¶
func (x *UpdateUserInfoRequest) String() string
type UserInfo ¶
type UserInfo struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` AccountId int64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` GameId int32 `protobuf:"varint,3,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"` PlayerId int64 `protobuf:"varint,4,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"` PlayerName string `protobuf:"bytes,5,opt,name=player_name,json=playerName,proto3" json:"player_name,omitempty"` PlayerLevel int32 `protobuf:"varint,6,opt,name=player_level,json=playerLevel,proto3" json:"player_level,omitempty"` // contains filtered or unexported fields }
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetAccountId ¶
func (*UserInfo) GetPlayerId ¶
func (*UserInfo) GetPlayerLevel ¶
func (*UserInfo) GetPlayerName ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.