Documentation ¶
Index ¶
- func NewGateServiceEndpoints() []*api.Endpoint
- 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 SyncPlayerInfoReply
- func (*SyncPlayerInfoReply) Descriptor() ([]byte, []int)
- func (m *SyncPlayerInfoReply) GetInfo() *UserInfo
- func (*SyncPlayerInfoReply) ProtoMessage()
- func (m *SyncPlayerInfoReply) Reset()
- func (m *SyncPlayerInfoReply) String() string
- func (m *SyncPlayerInfoReply) XXX_DiscardUnknown()
- func (m *SyncPlayerInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncPlayerInfoReply) XXX_Merge(src proto.Message)
- func (m *SyncPlayerInfoReply) XXX_Size() int
- func (m *SyncPlayerInfoReply) XXX_Unmarshal(b []byte) error
- type SyncPlayerInfoRequest
- func (*SyncPlayerInfoRequest) Descriptor() ([]byte, []int)
- func (m *SyncPlayerInfoRequest) GetInfo() *game.PlayerInfo
- func (m *SyncPlayerInfoRequest) GetUserId() int64
- func (*SyncPlayerInfoRequest) ProtoMessage()
- func (m *SyncPlayerInfoRequest) Reset()
- func (m *SyncPlayerInfoRequest) String() string
- func (m *SyncPlayerInfoRequest) XXX_DiscardUnknown()
- func (m *SyncPlayerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncPlayerInfoRequest) XXX_Merge(src proto.Message)
- func (m *SyncPlayerInfoRequest) XXX_Size() int
- func (m *SyncPlayerInfoRequest) 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 NewGateServiceEndpoints ¶ added in v1.0.1
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) 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"` 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 SyncPlayerInfoReply ¶ added in v1.0.1
type SyncPlayerInfoReply 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 (*SyncPlayerInfoReply) Descriptor ¶ added in v1.0.1
func (*SyncPlayerInfoReply) Descriptor() ([]byte, []int)
func (*SyncPlayerInfoReply) GetInfo ¶ added in v1.0.1
func (m *SyncPlayerInfoReply) GetInfo() *UserInfo
func (*SyncPlayerInfoReply) ProtoMessage ¶ added in v1.0.1
func (*SyncPlayerInfoReply) ProtoMessage()
func (*SyncPlayerInfoReply) Reset ¶ added in v1.0.1
func (m *SyncPlayerInfoReply) Reset()
func (*SyncPlayerInfoReply) String ¶ added in v1.0.1
func (m *SyncPlayerInfoReply) String() string
func (*SyncPlayerInfoReply) XXX_DiscardUnknown ¶ added in v1.0.1
func (m *SyncPlayerInfoReply) XXX_DiscardUnknown()
func (*SyncPlayerInfoReply) XXX_Marshal ¶ added in v1.0.1
func (m *SyncPlayerInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncPlayerInfoReply) XXX_Merge ¶ added in v1.0.1
func (m *SyncPlayerInfoReply) XXX_Merge(src proto.Message)
func (*SyncPlayerInfoReply) XXX_Size ¶ added in v1.0.1
func (m *SyncPlayerInfoReply) XXX_Size() int
func (*SyncPlayerInfoReply) XXX_Unmarshal ¶ added in v1.0.1
func (m *SyncPlayerInfoReply) XXX_Unmarshal(b []byte) error
type SyncPlayerInfoRequest ¶ added in v1.0.1
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SyncPlayerInfoRequest) Descriptor ¶ added in v1.0.1
func (*SyncPlayerInfoRequest) Descriptor() ([]byte, []int)
func (*SyncPlayerInfoRequest) GetInfo ¶ added in v1.0.1
func (m *SyncPlayerInfoRequest) GetInfo() *game.PlayerInfo
func (*SyncPlayerInfoRequest) GetUserId ¶ added in v1.0.1
func (m *SyncPlayerInfoRequest) GetUserId() int64
func (*SyncPlayerInfoRequest) ProtoMessage ¶ added in v1.0.1
func (*SyncPlayerInfoRequest) ProtoMessage()
func (*SyncPlayerInfoRequest) Reset ¶ added in v1.0.1
func (m *SyncPlayerInfoRequest) Reset()
func (*SyncPlayerInfoRequest) String ¶ added in v1.0.1
func (m *SyncPlayerInfoRequest) String() string
func (*SyncPlayerInfoRequest) XXX_DiscardUnknown ¶ added in v1.0.1
func (m *SyncPlayerInfoRequest) XXX_DiscardUnknown()
func (*SyncPlayerInfoRequest) XXX_Marshal ¶ added in v1.0.1
func (m *SyncPlayerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncPlayerInfoRequest) XXX_Merge ¶ added in v1.0.1
func (m *SyncPlayerInfoRequest) XXX_Merge(src proto.Message)
func (*SyncPlayerInfoRequest) XXX_Size ¶ added in v1.0.1
func (m *SyncPlayerInfoRequest) XXX_Size() int
func (*SyncPlayerInfoRequest) XXX_Unmarshal ¶ added in v1.0.1
func (m *SyncPlayerInfoRequest) 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.