pb

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IValue_IType_name = map[int32]string{
		0: "str",
		1: "int",
		2: "map",
		3: "nil",
		4: "any",
		5: "arr",
	}
	IValue_IType_value = map[string]int32{
		"str": 0,
		"int": 1,
		"map": 2,
		"nil": 3,
		"any": 4,
		"arr": 5,
	}
)

Enum value maps for IValue_IType.

View Source
var File_server_proto protoreflect.FileDescriptor

Functions

func RegisterTStoreServiceServer

func RegisterTStoreServiceServer(s *grpc.Server, srv TStoreServiceServer)

Types

type Accessory

type Accessory struct {
	Lv       int32 `protobuf:"varint,1,opt,name=lv,proto3" json:"lv,omitempty"`
	Critical int32 `protobuf:"varint,2,opt,name=critical,proto3" json:"critical,omitempty"`
	// contains filtered or unexported fields
}

func (*Accessory) Descriptor deprecated

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

Deprecated: Use Accessory.ProtoReflect.Descriptor instead.

func (*Accessory) GetCritical

func (x *Accessory) GetCritical() int32

func (*Accessory) GetLv

func (x *Accessory) GetLv() int32

func (*Accessory) ProtoMessage

func (*Accessory) ProtoMessage()

func (*Accessory) ProtoReflect

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

func (*Accessory) Reset

func (x *Accessory) Reset()

func (*Accessory) String

func (x *Accessory) String() string

type ActionRecord

type ActionRecord struct {
	Date   int64            `protobuf:"varint,1,opt,name=date,proto3" json:"date,omitempty"`
	Action map[string]int32 `` /* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ActionRecord) Descriptor deprecated

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

Deprecated: Use ActionRecord.ProtoReflect.Descriptor instead.

func (*ActionRecord) GetAction

func (x *ActionRecord) GetAction() map[string]int32

func (*ActionRecord) GetDate

func (x *ActionRecord) GetDate() int64

func (*ActionRecord) ProtoMessage

func (*ActionRecord) ProtoMessage()

func (*ActionRecord) ProtoReflect

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

func (*ActionRecord) Reset

func (x *ActionRecord) Reset()

func (*ActionRecord) String

func (x *ActionRecord) String() string

type Arm

type Arm struct {
	Lv          int32 `protobuf:"varint,1,opt,name=lv,proto3" json:"lv,omitempty"`
	AttackSpeed int32 `protobuf:"varint,2,opt,name=attackSpeed,proto3" json:"attackSpeed,omitempty"`
	// contains filtered or unexported fields
}

func (*Arm) Descriptor deprecated

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

Deprecated: Use Arm.ProtoReflect.Descriptor instead.

func (*Arm) GetAttackSpeed

func (x *Arm) GetAttackSpeed() int32

func (*Arm) GetLv

func (x *Arm) GetLv() int32

func (*Arm) ProtoMessage

func (*Arm) ProtoMessage()

func (*Arm) ProtoReflect

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

func (*Arm) Reset

func (x *Arm) Reset()

func (*Arm) String

func (x *Arm) String() string

type BattleRecord

type BattleRecord struct {
	Record map[int32]bool `` /* 155-byte string literal not displayed */
	Date   int64          `protobuf:"varint,2,opt,name=date,proto3" json:"date,omitempty"`
	// contains filtered or unexported fields
}

func (*BattleRecord) Descriptor deprecated

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

Deprecated: Use BattleRecord.ProtoReflect.Descriptor instead.

func (*BattleRecord) GetDate

func (x *BattleRecord) GetDate() int64

func (*BattleRecord) GetRecord

func (x *BattleRecord) GetRecord() map[int32]bool

func (*BattleRecord) ProtoMessage

func (*BattleRecord) ProtoMessage()

func (*BattleRecord) ProtoReflect

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

func (*BattleRecord) Reset

func (x *BattleRecord) Reset()

func (*BattleRecord) String

func (x *BattleRecord) String() string

type Chest

type Chest struct {
	Lv      int32 `protobuf:"varint,1,opt,name=lv,proto3" json:"lv,omitempty"`
	Defence int32 `protobuf:"varint,2,opt,name=defence,proto3" json:"defence,omitempty"`
	// contains filtered or unexported fields
}

func (*Chest) Descriptor deprecated

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

Deprecated: Use Chest.ProtoReflect.Descriptor instead.

func (*Chest) GetDefence

func (x *Chest) GetDefence() int32

func (*Chest) GetLv

func (x *Chest) GetLv() int32

func (*Chest) ProtoMessage

func (*Chest) ProtoMessage()

func (*Chest) ProtoReflect

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

func (*Chest) Reset

func (x *Chest) Reset()

func (*Chest) String

func (x *Chest) String() string

type Core

type Core struct {
	Lv int32 `protobuf:"varint,1,opt,name=lv,proto3" json:"lv,omitempty"`
	HP int32 `protobuf:"varint,2,opt,name=HP,proto3" json:"HP,omitempty"`
	// contains filtered or unexported fields
}

func (*Core) Descriptor deprecated

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

Deprecated: Use Core.ProtoReflect.Descriptor instead.

func (*Core) GetHP

func (x *Core) GetHP() int32

func (*Core) GetLv

func (x *Core) GetLv() int32

func (*Core) ProtoMessage

func (*Core) ProtoMessage()

func (*Core) ProtoReflect

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

func (*Core) Reset

func (x *Core) Reset()

func (*Core) String

func (x *Core) String() string

type Engine

type Engine struct {
	Lv   int32 `protobuf:"varint,1,opt,name=lv,proto3" json:"lv,omitempty"`
	Miss int32 `protobuf:"varint,2,opt,name=miss,proto3" json:"miss,omitempty"`
	// contains filtered or unexported fields
}

func (*Engine) Descriptor deprecated

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

Deprecated: Use Engine.ProtoReflect.Descriptor instead.

func (*Engine) GetLv

func (x *Engine) GetLv() int32

func (*Engine) GetMiss

func (x *Engine) GetMiss() int32

func (*Engine) ProtoMessage

func (*Engine) ProtoMessage()

func (*Engine) ProtoReflect

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

func (*Engine) Reset

func (x *Engine) Reset()

func (*Engine) String

func (x *Engine) String() string

type FetchParam

type FetchParam struct {
	Uid  string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchParam) Descriptor deprecated

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

Deprecated: Use FetchParam.ProtoReflect.Descriptor instead.

func (*FetchParam) GetPath

func (x *FetchParam) GetPath() string

func (*FetchParam) GetUid

func (x *FetchParam) GetUid() string

func (*FetchParam) ProtoMessage

func (*FetchParam) ProtoMessage()

func (*FetchParam) ProtoReflect

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

func (*FetchParam) Reset

func (x *FetchParam) Reset()

func (*FetchParam) String

func (x *FetchParam) String() string

type FetchResp

type FetchResp struct {
	Code   int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg    string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	IValue *IValue  `protobuf:"bytes,6,opt,name=iValue,proto3" json:"iValue,omitempty"`
	Keys   []string `protobuf:"bytes,7,rep,name=keys,proto3" json:"keys,omitempty"`
	ArrLen int32    `protobuf:"varint,8,opt,name=arrLen,proto3" json:"arrLen,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchResp) Descriptor deprecated

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

Deprecated: Use FetchResp.ProtoReflect.Descriptor instead.

func (*FetchResp) GetArrLen added in v0.1.16

func (x *FetchResp) GetArrLen() int32

func (*FetchResp) GetCode

func (x *FetchResp) GetCode() int32

func (*FetchResp) GetIValue

func (x *FetchResp) GetIValue() *IValue

func (*FetchResp) GetKeys added in v0.1.16

func (x *FetchResp) GetKeys() []string

func (*FetchResp) GetMsg

func (x *FetchResp) GetMsg() string

func (*FetchResp) ProtoMessage

func (*FetchResp) ProtoMessage()

func (*FetchResp) ProtoReflect

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

func (*FetchResp) Reset

func (x *FetchResp) Reset()

func (*FetchResp) String

func (x *FetchResp) String() string

type IValue

type IValue struct {
	StrValue string             `protobuf:"bytes,1,opt,name=str_value,json=strValue,proto3" json:"str_value,omitempty"`
	IntValue int32              `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3" json:"int_value,omitempty"`
	MapValue map[string]*IValue `` /* 173-byte string literal not displayed */
	AnyValue *anypb.Any         `protobuf:"bytes,4,opt,name=any_value,json=anyValue,proto3" json:"any_value,omitempty"`
	Itype    IValue_IType       `protobuf:"varint,5,opt,name=itype,proto3,enum=pb.IValue_IType" json:"itype,omitempty"`
	ArrValue []*IValue          `protobuf:"bytes,6,rep,name=arr_value,json=arrValue,proto3" json:"arr_value,omitempty"`
	// contains filtered or unexported fields
}

func NewAnyValue

func NewAnyValue(m proto.Message, typeName string) *IValue

func NewArrValue added in v0.1.16

func NewArrValue(m []interface{}) *IValue

func NewIValue

func NewIValue(value interface{}) *IValue

func NewIntValue

func NewIntValue(i int32) *IValue

func NewMapValue

func NewMapValue(m map[string]interface{}) *IValue

func NewStrValue

func NewStrValue(str string) *IValue

func (*IValue) ArrPush added in v0.1.16

func (x *IValue) ArrPush(v *IValue) int

func (*IValue) Descriptor deprecated

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

Deprecated: Use IValue.ProtoReflect.Descriptor instead.

func (*IValue) GetAnyValue

func (x *IValue) GetAnyValue() *anypb.Any

func (*IValue) GetArrValue added in v0.1.16

func (x *IValue) GetArrValue() []*IValue

func (*IValue) GetIntValue

func (x *IValue) GetIntValue() int32

func (*IValue) GetItype

func (x *IValue) GetItype() IValue_IType

func (*IValue) GetMapValue

func (x *IValue) GetMapValue() map[string]*IValue

func (*IValue) GetStrValue

func (x *IValue) GetStrValue() string

func (*IValue) MapDelete added in v0.1.16

func (x *IValue) MapDelete(key string)

func (*IValue) MapGet

func (x *IValue) MapGet(key string) (*IValue, bool)

func (*IValue) MapSet

func (x *IValue) MapSet(key string, v *IValue)

func (*IValue) ProtoMessage

func (*IValue) ProtoMessage()

func (*IValue) ProtoReflect

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

func (*IValue) Reset

func (x *IValue) Reset()

func (*IValue) String

func (x *IValue) String() string

type IValue_IType

type IValue_IType int32
const (
	IValue_str IValue_IType = 0
	IValue_int IValue_IType = 1
	IValue_map IValue_IType = 2
	IValue_nil IValue_IType = 3
	IValue_any IValue_IType = 4
	IValue_arr IValue_IType = 5
)

func (IValue_IType) Descriptor

func (IValue_IType) Enum

func (x IValue_IType) Enum() *IValue_IType

func (IValue_IType) EnumDescriptor deprecated

func (IValue_IType) EnumDescriptor() ([]byte, []int)

Deprecated: Use IValue_IType.Descriptor instead.

func (IValue_IType) Number

func (IValue_IType) String

func (x IValue_IType) String() string

func (IValue_IType) Type

type Leg

type Leg struct {
	Lv        int32 `protobuf:"varint,1,opt,name=lv,proto3" json:"lv,omitempty"`
	Endurance int32 `protobuf:"varint,2,opt,name=endurance,proto3" json:"endurance,omitempty"`
	// contains filtered or unexported fields
}

func (*Leg) Descriptor deprecated

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

Deprecated: Use Leg.ProtoReflect.Descriptor instead.

func (*Leg) GetEndurance

func (x *Leg) GetEndurance() int32

func (*Leg) GetLv

func (x *Leg) GetLv() int32

func (*Leg) ProtoMessage

func (*Leg) ProtoMessage()

func (*Leg) ProtoReflect

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

func (*Leg) Reset

func (x *Leg) Reset()

func (*Leg) String

func (x *Leg) String() string

type SaveParam

type SaveParam struct {
	Uid    string  `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Path   string  `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	IValue *IValue `protobuf:"bytes,6,opt,name=iValue,proto3" json:"iValue,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveParam) Descriptor deprecated

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

Deprecated: Use SaveParam.ProtoReflect.Descriptor instead.

func (*SaveParam) GetIValue

func (x *SaveParam) GetIValue() *IValue

func (*SaveParam) GetPath

func (x *SaveParam) GetPath() string

func (*SaveParam) GetUid

func (x *SaveParam) GetUid() string

func (*SaveParam) ProtoMessage

func (*SaveParam) ProtoMessage()

func (*SaveParam) ProtoReflect

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

func (*SaveParam) Reset

func (x *SaveParam) Reset()

func (*SaveParam) String

func (x *SaveParam) String() string

type SaveResp

type SaveResp struct {
	Code   int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg    string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	ArrLen int32  `protobuf:"varint,3,opt,name=arrLen,proto3" json:"arrLen,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveResp) Descriptor deprecated

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

Deprecated: Use SaveResp.ProtoReflect.Descriptor instead.

func (*SaveResp) GetArrLen added in v0.1.16

func (x *SaveResp) GetArrLen() int32

func (*SaveResp) GetCode

func (x *SaveResp) GetCode() int32

func (*SaveResp) GetMsg

func (x *SaveResp) GetMsg() string

func (*SaveResp) ProtoMessage

func (*SaveResp) ProtoMessage()

func (*SaveResp) ProtoReflect

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

func (*SaveResp) Reset

func (x *SaveResp) Reset()

func (*SaveResp) String

func (x *SaveResp) String() string

type Suit

type Suit struct {
	Engine    *Engine    `protobuf:"bytes,1,opt,name=engine,proto3" json:"engine,omitempty"`
	Chest     *Chest     `protobuf:"bytes,2,opt,name=chest,proto3" json:"chest,omitempty"`
	Core      *Core      `protobuf:"bytes,3,opt,name=core,proto3" json:"core,omitempty"`
	Trunk     *Trunk     `protobuf:"bytes,4,opt,name=trunk,proto3" json:"trunk,omitempty"`
	Leg       *Leg       `protobuf:"bytes,5,opt,name=leg,proto3" json:"leg,omitempty"`
	Arm       *Arm       `protobuf:"bytes,6,opt,name=arm,proto3" json:"arm,omitempty"`
	Weapon    *Weapon    `protobuf:"bytes,7,opt,name=weapon,proto3" json:"weapon,omitempty"`
	Accessory *Accessory `protobuf:"bytes,8,opt,name=accessory,proto3" json:"accessory,omitempty"`
	// contains filtered or unexported fields
}

func (*Suit) CombatPower

func (s *Suit) CombatPower() int32

func (*Suit) Descriptor deprecated

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

Deprecated: Use Suit.ProtoReflect.Descriptor instead.

func (*Suit) GetAccessory

func (x *Suit) GetAccessory() *Accessory

func (*Suit) GetArm

func (x *Suit) GetArm() *Arm

func (*Suit) GetChest

func (x *Suit) GetChest() *Chest

func (*Suit) GetCore

func (x *Suit) GetCore() *Core

func (*Suit) GetEngine

func (x *Suit) GetEngine() *Engine

func (*Suit) GetLeg

func (x *Suit) GetLeg() *Leg

func (*Suit) GetTrunk

func (x *Suit) GetTrunk() *Trunk

func (*Suit) GetWeapon

func (x *Suit) GetWeapon() *Weapon

func (*Suit) Level

func (s *Suit) Level() int32

func (*Suit) ProtoMessage

func (*Suit) ProtoMessage()

func (*Suit) ProtoReflect

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

func (*Suit) Reset

func (x *Suit) Reset()

func (*Suit) String

func (x *Suit) String() string

type TStoreServiceClient

type TStoreServiceClient interface {
	Save(ctx context.Context, in *SaveParam, opts ...grpc.CallOption) (*SaveResp, error)
	Fetch(ctx context.Context, in *FetchParam, opts ...grpc.CallOption) (*FetchResp, error)
	Delete(ctx context.Context, in *FetchParam, opts ...grpc.CallOption) (*FetchResp, error)
	Keys(ctx context.Context, in *FetchParam, opts ...grpc.CallOption) (*FetchResp, error)
	Push(ctx context.Context, in *SaveParam, opts ...grpc.CallOption) (*SaveResp, error)
	Shift(ctx context.Context, in *FetchParam, opts ...grpc.CallOption) (*FetchResp, error)
}

TStoreServiceClient is the client API for TStoreService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type TStoreServiceServer

TStoreServiceServer is the server API for TStoreService service.

type Trunk

type Trunk struct {
	Lv       int32 `protobuf:"varint,1,opt,name=lv,proto3" json:"lv,omitempty"`
	Capacity int32 `protobuf:"varint,2,opt,name=capacity,proto3" json:"capacity,omitempty"`
	// contains filtered or unexported fields
}

func (*Trunk) Descriptor deprecated

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

Deprecated: Use Trunk.ProtoReflect.Descriptor instead.

func (*Trunk) GetCapacity

func (x *Trunk) GetCapacity() int32

func (*Trunk) GetLv

func (x *Trunk) GetLv() int32

func (*Trunk) ProtoMessage

func (*Trunk) ProtoMessage()

func (*Trunk) ProtoReflect

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

func (*Trunk) Reset

func (x *Trunk) Reset()

func (*Trunk) String

func (x *Trunk) String() string

type UnimplementedTStoreServiceServer

type UnimplementedTStoreServiceServer struct {
}

UnimplementedTStoreServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTStoreServiceServer) Delete added in v0.1.16

func (*UnimplementedTStoreServiceServer) Fetch

func (*UnimplementedTStoreServiceServer) Keys added in v0.1.16

func (*UnimplementedTStoreServiceServer) Push added in v0.1.16

func (*UnimplementedTStoreServiceServer) Save

func (*UnimplementedTStoreServiceServer) Shift added in v0.1.16

type User

type User struct {
	Id            int32            `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Ore           int32            `protobuf:"varint,2,opt,name=ore,proto3" json:"ore,omitempty"`
	Address       string           `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Suit          *Suit            `protobuf:"bytes,4,opt,name=suit,proto3" json:"suit,omitempty"`
	ActionTime    map[string]int64 `` /* 162-byte string literal not displayed */
	BattleRecord  *BattleRecord    `protobuf:"bytes,7,opt,name=battleRecord,proto3" json:"battleRecord,omitempty"`
	BattledRecord *BattleRecord    `protobuf:"bytes,8,opt,name=battledRecord,proto3" json:"battledRecord,omitempty"`
	ActionRecord  *ActionRecord    `protobuf:"bytes,9,opt,name=actionRecord,proto3" json:"actionRecord,omitempty"`
	DiscordName   string           `protobuf:"bytes,10,opt,name=discordName,proto3" json:"discordName,omitempty"`
	TeleName      string           `protobuf:"bytes,11,opt,name=teleName,proto3" json:"teleName,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetActionRecord

func (x *User) GetActionRecord() *ActionRecord

func (*User) GetActionTime

func (x *User) GetActionTime() map[string]int64

func (*User) GetAddress

func (x *User) GetAddress() string

func (*User) GetBattleRecord

func (x *User) GetBattleRecord() *BattleRecord

func (*User) GetBattledRecord

func (x *User) GetBattledRecord() *BattleRecord

func (*User) GetDiscordName

func (x *User) GetDiscordName() string

func (*User) GetId

func (x *User) GetId() int32

func (*User) GetInfo

func (u *User) GetInfo() map[string]string

func (*User) GetOre

func (x *User) GetOre() int32

func (*User) GetSuit

func (x *User) GetSuit() *Suit

func (*User) GetTeleName

func (x *User) GetTeleName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type Weapon

type Weapon struct {
	Lv     int32 `protobuf:"varint,1,opt,name=lv,proto3" json:"lv,omitempty"`
	Attack int32 `protobuf:"varint,2,opt,name=attack,proto3" json:"attack,omitempty"`
	// contains filtered or unexported fields
}

func (*Weapon) Descriptor deprecated

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

Deprecated: Use Weapon.ProtoReflect.Descriptor instead.

func (*Weapon) GetAttack

func (x *Weapon) GetAttack() int32

func (*Weapon) GetLv

func (x *Weapon) GetLv() int32

func (*Weapon) ProtoMessage

func (*Weapon) ProtoMessage()

func (*Weapon) ProtoReflect

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

func (*Weapon) Reset

func (x *Weapon) Reset()

func (*Weapon) String

func (x *Weapon) String() string

Jump to

Keyboard shortcuts

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