Documentation
¶
Index ¶
- func RegisterGateServiceHandler(s server.Server, hdlr GateServiceHandler, opts ...server.HandlerOption) error
- type GateEmptyMessage
- func (*GateEmptyMessage) Descriptor() ([]byte, []int)
- func (*GateEmptyMessage) ProtoMessage()
- func (m *GateEmptyMessage) Reset()
- func (m *GateEmptyMessage) String() string
- func (m *GateEmptyMessage) XXX_DiscardUnknown()
- func (m *GateEmptyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GateEmptyMessage) XXX_Merge(src proto.Message)
- func (m *GateEmptyMessage) XXX_Size() int
- func (m *GateEmptyMessage) XXX_Unmarshal(b []byte) error
- type GateService
- type GateServiceHandler
- type GateStatus
- func (*GateStatus) Descriptor() ([]byte, []int)
- func (m *GateStatus) GetGateId() int32
- func (m *GateStatus) GetHealth() int32
- func (*GateStatus) ProtoMessage()
- func (m *GateStatus) Reset()
- func (m *GateStatus) String() string
- func (m *GateStatus) XXX_DiscardUnknown()
- func (m *GateStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GateStatus) XXX_Merge(src proto.Message)
- func (m *GateStatus) XXX_Size() int
- func (m *GateStatus) XXX_Unmarshal(b []byte) error
- type GetGateStatusReply
- func (*GetGateStatusReply) Descriptor() ([]byte, []int)
- func (m *GetGateStatusReply) GetStatus() *GateStatus
- func (*GetGateStatusReply) ProtoMessage()
- func (m *GetGateStatusReply) Reset()
- func (m *GetGateStatusReply) String() string
- func (m *GetGateStatusReply) XXX_DiscardUnknown()
- func (m *GetGateStatusReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetGateStatusReply) XXX_Merge(src proto.Message)
- func (m *GetGateStatusReply) XXX_Size() int
- func (m *GetGateStatusReply) XXX_Unmarshal(b []byte) error
- type UpdateUserInfoRequest
- func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int)
- func (m *UpdateUserInfoRequest) GetInfo() *UserInfo
- func (*UpdateUserInfoRequest) ProtoMessage()
- func (m *UpdateUserInfoRequest) Reset()
- func (m *UpdateUserInfoRequest) String() string
- func (m *UpdateUserInfoRequest) XXX_DiscardUnknown()
- func (m *UpdateUserInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateUserInfoRequest) XXX_Merge(src proto.Message)
- func (m *UpdateUserInfoRequest) XXX_Size() int
- func (m *UpdateUserInfoRequest) XXX_Unmarshal(b []byte) error
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)
- func (m *UserInfo) GetAccountId() int64
- func (m *UserInfo) GetGameId() int32
- func (m *UserInfo) GetPlayerId() int64
- func (m *UserInfo) GetPlayerLevel() int32
- func (m *UserInfo) GetPlayerName() string
- func (m *UserInfo) GetUserId() int64
- func (*UserInfo) ProtoMessage()
- func (m *UserInfo) Reset()
- func (m *UserInfo) String() string
- func (m *UserInfo) XXX_DiscardUnknown()
- func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserInfo) XXX_Merge(src proto.Message)
- func (m *UserInfo) XXX_Size() int
- func (m *UserInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGateServiceHandler ¶
func RegisterGateServiceHandler(s server.Server, hdlr GateServiceHandler, opts ...server.HandlerOption) error
Types ¶
type GateEmptyMessage ¶
type GateEmptyMessage struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GateEmptyMessage) Descriptor ¶
func (*GateEmptyMessage) Descriptor() ([]byte, []int)
func (*GateEmptyMessage) ProtoMessage ¶
func (*GateEmptyMessage) ProtoMessage()
func (*GateEmptyMessage) Reset ¶
func (m *GateEmptyMessage) Reset()
func (*GateEmptyMessage) String ¶
func (m *GateEmptyMessage) String() string
func (*GateEmptyMessage) XXX_DiscardUnknown ¶
func (m *GateEmptyMessage) XXX_DiscardUnknown()
func (*GateEmptyMessage) XXX_Marshal ¶
func (m *GateEmptyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GateEmptyMessage) XXX_Merge ¶
func (m *GateEmptyMessage) XXX_Merge(src proto.Message)
func (*GateEmptyMessage) XXX_Size ¶
func (m *GateEmptyMessage) XXX_Size() int
func (*GateEmptyMessage) XXX_Unmarshal ¶
func (m *GateEmptyMessage) XXX_Unmarshal(b []byte) error
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) }
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 }
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GateStatus) Descriptor ¶
func (*GateStatus) Descriptor() ([]byte, []int)
func (*GateStatus) GetGateId ¶
func (m *GateStatus) GetGateId() int32
func (*GateStatus) GetHealth ¶
func (m *GateStatus) GetHealth() int32
func (*GateStatus) ProtoMessage ¶
func (*GateStatus) ProtoMessage()
func (*GateStatus) Reset ¶
func (m *GateStatus) Reset()
func (*GateStatus) String ¶
func (m *GateStatus) String() string
func (*GateStatus) XXX_DiscardUnknown ¶
func (m *GateStatus) XXX_DiscardUnknown()
func (*GateStatus) XXX_Marshal ¶
func (m *GateStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GateStatus) XXX_Merge ¶
func (m *GateStatus) XXX_Merge(src proto.Message)
func (*GateStatus) XXX_Size ¶
func (m *GateStatus) XXX_Size() int
func (*GateStatus) XXX_Unmarshal ¶
func (m *GateStatus) XXX_Unmarshal(b []byte) error
type GetGateStatusReply ¶
type GetGateStatusReply struct { Status *GateStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetGateStatusReply) Descriptor ¶
func (*GetGateStatusReply) Descriptor() ([]byte, []int)
func (*GetGateStatusReply) GetStatus ¶
func (m *GetGateStatusReply) GetStatus() *GateStatus
func (*GetGateStatusReply) ProtoMessage ¶
func (*GetGateStatusReply) ProtoMessage()
func (*GetGateStatusReply) Reset ¶
func (m *GetGateStatusReply) Reset()
func (*GetGateStatusReply) String ¶
func (m *GetGateStatusReply) String() string
func (*GetGateStatusReply) XXX_DiscardUnknown ¶
func (m *GetGateStatusReply) XXX_DiscardUnknown()
func (*GetGateStatusReply) XXX_Marshal ¶
func (m *GetGateStatusReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetGateStatusReply) XXX_Merge ¶
func (m *GetGateStatusReply) XXX_Merge(src proto.Message)
func (*GetGateStatusReply) XXX_Size ¶
func (m *GetGateStatusReply) XXX_Size() int
func (*GetGateStatusReply) XXX_Unmarshal ¶
func (m *GetGateStatusReply) XXX_Unmarshal(b []byte) error
type UpdateUserInfoRequest ¶
type UpdateUserInfoRequest struct { Info *UserInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateUserInfoRequest) Descriptor ¶
func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int)
func (*UpdateUserInfoRequest) GetInfo ¶
func (m *UpdateUserInfoRequest) GetInfo() *UserInfo
func (*UpdateUserInfoRequest) ProtoMessage ¶
func (*UpdateUserInfoRequest) ProtoMessage()
func (*UpdateUserInfoRequest) Reset ¶
func (m *UpdateUserInfoRequest) Reset()
func (*UpdateUserInfoRequest) String ¶
func (m *UpdateUserInfoRequest) String() string
func (*UpdateUserInfoRequest) XXX_DiscardUnknown ¶
func (m *UpdateUserInfoRequest) XXX_DiscardUnknown()
func (*UpdateUserInfoRequest) XXX_Marshal ¶
func (m *UpdateUserInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateUserInfoRequest) XXX_Merge ¶
func (m *UpdateUserInfoRequest) XXX_Merge(src proto.Message)
func (*UpdateUserInfoRequest) XXX_Size ¶
func (m *UpdateUserInfoRequest) XXX_Size() int
func (*UpdateUserInfoRequest) XXX_Unmarshal ¶
func (m *UpdateUserInfoRequest) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserInfo) Descriptor ¶
func (*UserInfo) GetAccountId ¶
func (*UserInfo) GetPlayerId ¶
func (*UserInfo) GetPlayerLevel ¶
func (*UserInfo) GetPlayerName ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) XXX_DiscardUnknown ¶
func (m *UserInfo) XXX_DiscardUnknown()
func (*UserInfo) XXX_Marshal ¶
func (*UserInfo) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.