LiquidRpc

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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.

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) Descriptor() ([]byte, []int)

func (*ReqCmd) GetCmdData

func (m *ReqCmd) GetCmdData() []byte

func (*ReqCmd) GetCmdId

func (m *ReqCmd) GetCmdId() string

func (*ReqCmd) GetCmdName

func (m *ReqCmd) GetCmdName() string

func (*ReqCmd) GetDirect

func (m *ReqCmd) GetDirect() bool

func (*ReqCmd) GetPlatform

func (m *ReqCmd) GetPlatform() string

func (*ReqCmd) GetUserID

func (m *ReqCmd) GetUserID() string

func (*ReqCmd) ProtoMessage

func (*ReqCmd) ProtoMessage()

func (*ReqCmd) Reset

func (m *ReqCmd) Reset()

func (*ReqCmd) String

func (m *ReqCmd) String() string

func (*ReqCmd) XXX_DiscardUnknown

func (m *ReqCmd) XXX_DiscardUnknown()

func (*ReqCmd) XXX_Marshal

func (m *ReqCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqCmd) XXX_Merge

func (m *ReqCmd) XXX_Merge(src proto.Message)

func (*ReqCmd) XXX_Size

func (m *ReqCmd) XXX_Size() int

func (*ReqCmd) XXX_Unmarshal

func (m *ReqCmd) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqLogin) GetExtraData

func (m *ReqLogin) GetExtraData() []byte

func (*ReqLogin) GetFromId

func (m *ReqLogin) GetFromId() string

func (*ReqLogin) GetFromToken

func (m *ReqLogin) GetFromToken() string

func (*ReqLogin) GetFromType

func (m *ReqLogin) GetFromType() string

func (*ReqLogin) GetPlatform

func (m *ReqLogin) GetPlatform() string

func (*ReqLogin) ProtoMessage

func (*ReqLogin) ProtoMessage()

func (*ReqLogin) Reset

func (m *ReqLogin) Reset()

func (*ReqLogin) String

func (m *ReqLogin) String() string

func (*ReqLogin) XXX_DiscardUnknown

func (m *ReqLogin) XXX_DiscardUnknown()

func (*ReqLogin) XXX_Marshal

func (m *ReqLogin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqLogin) XXX_Merge

func (m *ReqLogin) XXX_Merge(src proto.Message)

func (*ReqLogin) XXX_Size

func (m *ReqLogin) XXX_Size() int

func (*ReqLogin) XXX_Unmarshal

func (m *ReqLogin) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*RespCmd) GetCmdData

func (m *RespCmd) GetCmdData() []byte

func (*RespCmd) ProtoMessage

func (*RespCmd) ProtoMessage()

func (*RespCmd) Reset

func (m *RespCmd) Reset()

func (*RespCmd) String

func (m *RespCmd) String() string

func (*RespCmd) XXX_DiscardUnknown

func (m *RespCmd) XXX_DiscardUnknown()

func (*RespCmd) XXX_Marshal

func (m *RespCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RespCmd) XXX_Merge

func (m *RespCmd) XXX_Merge(src proto.Message)

func (*RespCmd) XXX_Size

func (m *RespCmd) XXX_Size() int

func (*RespCmd) XXX_Unmarshal

func (m *RespCmd) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*RespLogin) GetMsg

func (m *RespLogin) GetMsg() string

func (*RespLogin) GetOverrideFromId

func (m *RespLogin) GetOverrideFromId() string

func (*RespLogin) GetValid

func (m *RespLogin) GetValid() bool

func (*RespLogin) ProtoMessage

func (*RespLogin) ProtoMessage()

func (*RespLogin) Reset

func (m *RespLogin) Reset()

func (*RespLogin) String

func (m *RespLogin) String() string

func (*RespLogin) XXX_DiscardUnknown

func (m *RespLogin) XXX_DiscardUnknown()

func (*RespLogin) XXX_Marshal

func (m *RespLogin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RespLogin) XXX_Merge

func (m *RespLogin) XXX_Merge(src proto.Message)

func (*RespLogin) XXX_Size

func (m *RespLogin) XXX_Size() int

func (*RespLogin) XXX_Unmarshal

func (m *RespLogin) XXX_Unmarshal(b []byte) error

type UnimplementedGameAdapterServer

type UnimplementedGameAdapterServer struct {
}

UnimplementedGameAdapterServer can be embedded to have forward compatible implementations.

func (*UnimplementedGameAdapterServer) Command

func (*UnimplementedGameAdapterServer) Login

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL