gate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gate_gate_proto protoreflect.FileDescriptor

Functions

func NewGateServiceEndpoints

func NewGateServiceEndpoints() []*api.Endpoint

func RegisterGateServiceHandler

func RegisterGateServiceHandler(s server.Server, hdlr GateServiceHandler, opts ...server.HandlerOption) error

Types

type GateEmptyMessage

type GateEmptyMessage struct {
	// contains filtered or unexported fields
}

func (*GateEmptyMessage) Descriptor deprecated

func (*GateEmptyMessage) Descriptor() ([]byte, []int)

Deprecated: Use GateEmptyMessage.ProtoReflect.Descriptor instead.

func (*GateEmptyMessage) ProtoMessage

func (*GateEmptyMessage) ProtoMessage()

func (*GateEmptyMessage) ProtoReflect

func (x *GateEmptyMessage) ProtoReflect() protoreflect.Message

func (*GateEmptyMessage) Reset

func (x *GateEmptyMessage) Reset()

func (*GateEmptyMessage) String

func (x *GateEmptyMessage) String() string

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"`
	// contains filtered or unexported fields
}

func (*GateStatus) Descriptor deprecated

func (*GateStatus) Descriptor() ([]byte, []int)

Deprecated: Use GateStatus.ProtoReflect.Descriptor instead.

func (*GateStatus) GetGateId

func (x *GateStatus) GetGateId() int32

func (*GateStatus) GetHealth

func (x *GateStatus) GetHealth() int32

func (*GateStatus) ProtoMessage

func (*GateStatus) ProtoMessage()

func (*GateStatus) ProtoReflect

func (x *GateStatus) ProtoReflect() protoreflect.Message

func (*GateStatus) Reset

func (x *GateStatus) Reset()

func (*GateStatus) String

func (x *GateStatus) String() string

type GetGateStatusReply

type GetGateStatusReply struct {
	Status *GateStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGateStatusReply) Descriptor deprecated

func (*GetGateStatusReply) Descriptor() ([]byte, []int)

Deprecated: Use GetGateStatusReply.ProtoReflect.Descriptor instead.

func (*GetGateStatusReply) GetStatus

func (x *GetGateStatusReply) GetStatus() *GateStatus

func (*GetGateStatusReply) ProtoMessage

func (*GetGateStatusReply) ProtoMessage()

func (*GetGateStatusReply) ProtoReflect

func (x *GetGateStatusReply) ProtoReflect() protoreflect.Message

func (*GetGateStatusReply) Reset

func (x *GetGateStatusReply) Reset()

func (*GetGateStatusReply) String

func (x *GetGateStatusReply) String() string

type SyncPlayerInfoReply

type SyncPlayerInfoReply struct {
	Info *UserInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncPlayerInfoReply) Descriptor deprecated

func (*SyncPlayerInfoReply) Descriptor() ([]byte, []int)

Deprecated: Use SyncPlayerInfoReply.ProtoReflect.Descriptor instead.

func (*SyncPlayerInfoReply) GetInfo

func (x *SyncPlayerInfoReply) GetInfo() *UserInfo

func (*SyncPlayerInfoReply) ProtoMessage

func (*SyncPlayerInfoReply) ProtoMessage()

func (*SyncPlayerInfoReply) ProtoReflect

func (x *SyncPlayerInfoReply) ProtoReflect() protoreflect.Message

func (*SyncPlayerInfoReply) Reset

func (x *SyncPlayerInfoReply) Reset()

func (*SyncPlayerInfoReply) String

func (x *SyncPlayerInfoReply) String() string

type SyncPlayerInfoRequest

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"`
	// contains filtered or unexported fields
}

func (*SyncPlayerInfoRequest) Descriptor deprecated

func (*SyncPlayerInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use SyncPlayerInfoRequest.ProtoReflect.Descriptor instead.

func (*SyncPlayerInfoRequest) GetInfo

func (x *SyncPlayerInfoRequest) GetInfo() *game.PlayerInfo

func (*SyncPlayerInfoRequest) GetUserId

func (x *SyncPlayerInfoRequest) GetUserId() int64

func (*SyncPlayerInfoRequest) ProtoMessage

func (*SyncPlayerInfoRequest) ProtoMessage()

func (*SyncPlayerInfoRequest) ProtoReflect

func (x *SyncPlayerInfoRequest) ProtoReflect() protoreflect.Message

func (*SyncPlayerInfoRequest) Reset

func (x *SyncPlayerInfoRequest) Reset()

func (*SyncPlayerInfoRequest) String

func (x *SyncPlayerInfoRequest) String() string

type UpdateUserInfoRequest

type UpdateUserInfoRequest struct {
	Info *UserInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserInfoRequest) Descriptor deprecated

func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserInfoRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserInfoRequest) GetInfo

func (x *UpdateUserInfoRequest) GetInfo() *UserInfo

func (*UpdateUserInfoRequest) ProtoMessage

func (*UpdateUserInfoRequest) ProtoMessage()

func (*UpdateUserInfoRequest) ProtoReflect

func (x *UpdateUserInfoRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserInfoRequest) Reset

func (x *UpdateUserInfoRequest) Reset()

func (*UpdateUserInfoRequest) String

func (x *UpdateUserInfoRequest) String() string

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"`
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

func (*UserInfo) Descriptor() ([]byte, []int)

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetAccountId

func (x *UserInfo) GetAccountId() int64

func (*UserInfo) GetGameId

func (x *UserInfo) GetGameId() int32

func (*UserInfo) GetPlayerId

func (x *UserInfo) GetPlayerId() int64

func (*UserInfo) GetPlayerLevel

func (x *UserInfo) GetPlayerLevel() int32

func (*UserInfo) GetPlayerName

func (x *UserInfo) GetPlayerName() string

func (*UserInfo) GetUserId

func (x *UserInfo) GetUserId() int64

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

func (x *UserInfo) ProtoReflect() protoreflect.Message

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

Jump to

Keyboard shortcuts

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