gate

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGateServiceEndpoints added in v1.0.1

func NewGateServiceEndpoints() []*api.Endpoint

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

func (*UserInfo) GetAccountId

func (m *UserInfo) GetAccountId() int64

func (*UserInfo) GetGameId

func (m *UserInfo) GetGameId() int32

func (*UserInfo) GetPlayerId

func (m *UserInfo) GetPlayerId() int64

func (*UserInfo) GetPlayerLevel

func (m *UserInfo) GetPlayerLevel() int32

func (*UserInfo) GetPlayerName

func (m *UserInfo) GetPlayerName() string

func (*UserInfo) GetUserId

func (m *UserInfo) GetUserId() int64

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) Reset

func (m *UserInfo) Reset()

func (*UserInfo) String

func (m *UserInfo) String() string

func (*UserInfo) XXX_DiscardUnknown

func (m *UserInfo) XXX_DiscardUnknown()

func (*UserInfo) XXX_Marshal

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

func (*UserInfo) XXX_Merge

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

func (*UserInfo) XXX_Size

func (m *UserInfo) XXX_Size() int

func (*UserInfo) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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