Documentation
¶
Index ¶
- func RegisterGameAdapterServer(s *grpc.Server, srv GameAdapterServer)
- type GameAdapterClient
- type GameAdapterServer
- type ReqCmd
- func (*ReqCmd) Descriptor() ([]byte, []int)
- func (m *ReqCmd) GetCmdData() []byte
- func (m *ReqCmd) GetCmdId() string
- func (m *ReqCmd) GetCmdName() string
- func (m *ReqCmd) GetDirect() bool
- func (m *ReqCmd) GetPlatform() string
- func (m *ReqCmd) GetUserID() string
- func (*ReqCmd) ProtoMessage()
- func (m *ReqCmd) Reset()
- func (m *ReqCmd) String() string
- func (m *ReqCmd) XXX_DiscardUnknown()
- func (m *ReqCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqCmd) XXX_Merge(src proto.Message)
- func (m *ReqCmd) XXX_Size() int
- func (m *ReqCmd) XXX_Unmarshal(b []byte) error
- type ReqLogin
- func (*ReqLogin) Descriptor() ([]byte, []int)
- func (m *ReqLogin) GetExtraData() []byte
- func (m *ReqLogin) GetFromId() string
- func (m *ReqLogin) GetFromToken() string
- func (m *ReqLogin) GetFromType() string
- func (m *ReqLogin) GetPlatform() string
- func (*ReqLogin) ProtoMessage()
- func (m *ReqLogin) Reset()
- func (m *ReqLogin) String() string
- func (m *ReqLogin) XXX_DiscardUnknown()
- func (m *ReqLogin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqLogin) XXX_Merge(src proto.Message)
- func (m *ReqLogin) XXX_Size() int
- func (m *ReqLogin) XXX_Unmarshal(b []byte) error
- type RespCmd
- func (*RespCmd) Descriptor() ([]byte, []int)
- func (m *RespCmd) GetCmdData() []byte
- func (*RespCmd) ProtoMessage()
- func (m *RespCmd) Reset()
- func (m *RespCmd) String() string
- func (m *RespCmd) XXX_DiscardUnknown()
- func (m *RespCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespCmd) XXX_Merge(src proto.Message)
- func (m *RespCmd) XXX_Size() int
- func (m *RespCmd) XXX_Unmarshal(b []byte) error
- type RespLogin
- func (*RespLogin) Descriptor() ([]byte, []int)
- func (m *RespLogin) GetMsg() string
- func (m *RespLogin) GetOverrideFromId() string
- func (m *RespLogin) GetValid() bool
- func (*RespLogin) ProtoMessage()
- func (m *RespLogin) Reset()
- func (m *RespLogin) String() string
- func (m *RespLogin) XXX_DiscardUnknown()
- func (m *RespLogin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespLogin) XXX_Merge(src proto.Message)
- func (m *RespLogin) XXX_Size() int
- func (m *RespLogin) XXX_Unmarshal(b []byte) error
- type UnimplementedGameAdapterServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGameAdapterServer ¶
func RegisterGameAdapterServer(s *grpc.Server, srv GameAdapterServer)
Types ¶
type GameAdapterClient ¶
type GameAdapterClient interface {
Command(ctx context.Context, in *ReqCmd, opts ...grpc.CallOption) (*RespCmd, error)
Login(ctx context.Context, in *ReqLogin, opts ...grpc.CallOption) (*RespLogin, error)
}
GameAdapterClient is the client API for GameAdapter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGameAdapterClient ¶
func NewGameAdapterClient(cc grpc.ClientConnInterface) GameAdapterClient
type GameAdapterServer ¶
type GameAdapterServer interface {
Command(context.Context, *ReqCmd) (*RespCmd, error)
Login(context.Context, *ReqLogin) (*RespLogin, error)
}
GameAdapterServer is the server API for GameAdapter service.
type ReqCmd ¶
type ReqCmd struct {
UserID string `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
Platform string `protobuf:"bytes,2,opt,name=Platform,proto3" json:"Platform,omitempty"`
CmdId string `protobuf:"bytes,3,opt,name=CmdId,proto3" json:"CmdId,omitempty"`
CmdName string `protobuf:"bytes,4,opt,name=CmdName,proto3" json:"CmdName,omitempty"`
CmdData []byte `protobuf:"bytes,5,opt,name=CmdData,proto3" json:"CmdData,omitempty"`
Direct bool `protobuf:"varint,6,opt,name=Direct,proto3" json:"Direct,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqCmd) Descriptor ¶
func (*ReqCmd) GetCmdData ¶
func (*ReqCmd) GetCmdName ¶
func (*ReqCmd) GetPlatform ¶
func (*ReqCmd) ProtoMessage ¶
func (*ReqCmd) ProtoMessage()
func (*ReqCmd) XXX_DiscardUnknown ¶
func (m *ReqCmd) XXX_DiscardUnknown()
func (*ReqCmd) XXX_Marshal ¶
func (*ReqCmd) XXX_Unmarshal ¶
type ReqLogin ¶
type ReqLogin struct {
FromType string `protobuf:"bytes,1,opt,name=FromType,proto3" json:"FromType,omitempty"`
FromId string `protobuf:"bytes,2,opt,name=FromId,proto3" json:"FromId,omitempty"`
FromToken string `protobuf:"bytes,3,opt,name=FromToken,proto3" json:"FromToken,omitempty"`
Platform string `protobuf:"bytes,4,opt,name=Platform,proto3" json:"Platform,omitempty"`
ExtraData []byte `protobuf:"bytes,5,opt,name=ExtraData,proto3" json:"ExtraData,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqLogin) Descriptor ¶
func (*ReqLogin) GetExtraData ¶
func (*ReqLogin) GetFromToken ¶
func (*ReqLogin) GetFromType ¶
func (*ReqLogin) GetPlatform ¶
func (*ReqLogin) ProtoMessage ¶
func (*ReqLogin) ProtoMessage()
func (*ReqLogin) XXX_DiscardUnknown ¶
func (m *ReqLogin) XXX_DiscardUnknown()
func (*ReqLogin) XXX_Marshal ¶
func (*ReqLogin) XXX_Unmarshal ¶
type RespCmd ¶
type RespCmd struct {
CmdData []byte `protobuf:"bytes,1,opt,name=CmdData,proto3" json:"CmdData,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*RespCmd) Descriptor ¶
func (*RespCmd) GetCmdData ¶
func (*RespCmd) ProtoMessage ¶
func (*RespCmd) ProtoMessage()
func (*RespCmd) XXX_DiscardUnknown ¶
func (m *RespCmd) XXX_DiscardUnknown()
func (*RespCmd) XXX_Marshal ¶
func (*RespCmd) XXX_Unmarshal ¶
type RespLogin ¶
type RespLogin struct {
Valid bool `protobuf:"varint,1,opt,name=Valid,proto3" json:"Valid,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"`
OverrideFromId string `protobuf:"bytes,3,opt,name=OverrideFromId,proto3" json:"OverrideFromId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*RespLogin) Descriptor ¶
func (*RespLogin) GetOverrideFromId ¶
func (*RespLogin) ProtoMessage ¶
func (*RespLogin) ProtoMessage()
func (*RespLogin) XXX_DiscardUnknown ¶
func (m *RespLogin) XXX_DiscardUnknown()
func (*RespLogin) XXX_Marshal ¶
func (*RespLogin) XXX_Unmarshal ¶
type UnimplementedGameAdapterServer ¶
type UnimplementedGameAdapterServer struct {
}
UnimplementedGameAdapterServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.