Documentation ¶
Index ¶
- Variables
- func RegisterTStoreServiceServer(s *grpc.Server, srv TStoreServiceServer)
- type Accessory
- type ActionRecord
- func (*ActionRecord) Descriptor() ([]byte, []int)deprecated
- func (x *ActionRecord) GetAction() map[string]int32
- func (x *ActionRecord) GetDate() int64
- func (*ActionRecord) ProtoMessage()
- func (x *ActionRecord) ProtoReflect() protoreflect.Message
- func (x *ActionRecord) Reset()
- func (x *ActionRecord) String() string
- type Arm
- type BattleRecord
- func (*BattleRecord) Descriptor() ([]byte, []int)deprecated
- func (x *BattleRecord) GetDate() int64
- func (x *BattleRecord) GetRecord() map[int32]bool
- func (*BattleRecord) ProtoMessage()
- func (x *BattleRecord) ProtoReflect() protoreflect.Message
- func (x *BattleRecord) Reset()
- func (x *BattleRecord) String() string
- type Chest
- type Core
- type Engine
- type FetchParam
- type FetchResp
- func (*FetchResp) Descriptor() ([]byte, []int)deprecated
- func (x *FetchResp) GetCode() int32
- func (x *FetchResp) GetIValue() *IValue
- func (x *FetchResp) GetMsg() string
- func (*FetchResp) ProtoMessage()
- func (x *FetchResp) ProtoReflect() protoreflect.Message
- func (x *FetchResp) Reset()
- func (x *FetchResp) String() string
- type IValue
- func (*IValue) Descriptor() ([]byte, []int)deprecated
- func (x *IValue) GetAnyValue() *anypb.Any
- func (x *IValue) GetIntValue() int32
- func (x *IValue) GetItype() IValue_IType
- func (x *IValue) GetMapValue() map[string]*IValue
- func (x *IValue) GetStrValue() string
- func (x *IValue) MapGet(key string) (*IValue, bool)
- func (x *IValue) MapSet(key string, v *IValue)
- func (*IValue) ProtoMessage()
- func (x *IValue) ProtoReflect() protoreflect.Message
- func (x *IValue) Reset()
- func (x *IValue) String() string
- type IValue_IType
- func (IValue_IType) Descriptor() protoreflect.EnumDescriptor
- func (x IValue_IType) Enum() *IValue_IType
- func (IValue_IType) EnumDescriptor() ([]byte, []int)deprecated
- func (x IValue_IType) Number() protoreflect.EnumNumber
- func (x IValue_IType) String() string
- func (IValue_IType) Type() protoreflect.EnumType
- type Leg
- type SaveParam
- func (*SaveParam) Descriptor() ([]byte, []int)deprecated
- func (x *SaveParam) GetIValue() *IValue
- func (x *SaveParam) GetPath() string
- func (x *SaveParam) GetUid() string
- func (*SaveParam) ProtoMessage()
- func (x *SaveParam) ProtoReflect() protoreflect.Message
- func (x *SaveParam) Reset()
- func (x *SaveParam) String() string
- type SaveResp
- type Suit
- func (s *Suit) CombatPower() int32
- func (*Suit) Descriptor() ([]byte, []int)deprecated
- func (x *Suit) GetAccessory() *Accessory
- func (x *Suit) GetArm() *Arm
- func (x *Suit) GetChest() *Chest
- func (x *Suit) GetCore() *Core
- func (x *Suit) GetEngine() *Engine
- func (x *Suit) GetLeg() *Leg
- func (x *Suit) GetTrunk() *Trunk
- func (x *Suit) GetWeapon() *Weapon
- func (s *Suit) Level() int32
- func (*Suit) ProtoMessage()
- func (x *Suit) ProtoReflect() protoreflect.Message
- func (x *Suit) Reset()
- func (x *Suit) String() string
- type TStoreServiceClient
- type TStoreServiceServer
- type Trunk
- type UnimplementedTStoreServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetActionRecord() *ActionRecord
- func (x *User) GetActionTime() map[string]int64
- func (x *User) GetAddress() string
- func (x *User) GetBattleRecord() *BattleRecord
- func (x *User) GetBattledRecord() *BattleRecord
- func (x *User) GetDiscordName() string
- func (x *User) GetId() int32
- func (u *User) GetInfo() map[string]string
- func (x *User) GetOre() int32
- func (x *User) GetSuit() *Suit
- func (x *User) GetTeleName() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type Weapon
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", } IValue_IType_value = map[string]int32{ "str": 0, "int": 1, "map": 2, "nil": 3, "any": 4, } )
Enum value maps for IValue_IType.
View Source
var File_tstore_proto protoreflect.FileDescriptor
View Source
var File_user_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) GetCritical ¶
func (*Accessory) ProtoMessage ¶
func (*Accessory) ProtoMessage()
func (*Accessory) ProtoReflect ¶
func (x *Accessory) ProtoReflect() protoreflect.Message
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) GetAttackSpeed ¶
func (*Arm) ProtoMessage ¶
func (*Arm) ProtoMessage()
func (*Arm) ProtoReflect ¶
func (x *Arm) ProtoReflect() protoreflect.Message
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) GetDefence ¶
func (*Chest) ProtoMessage ¶
func (*Chest) ProtoMessage()
func (*Chest) ProtoReflect ¶
func (x *Chest) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Core) ProtoMessage()
func (*Core) ProtoReflect ¶
func (x *Core) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Engine) ProtoMessage()
func (*Engine) ProtoReflect ¶
func (x *Engine) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
func (*FetchResp) Descriptor
deprecated
func (*FetchResp) ProtoMessage ¶
func (*FetchResp) ProtoMessage()
func (*FetchResp) ProtoReflect ¶
func (x *FetchResp) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
func NewAnyValue ¶
func NewIntValue ¶
func NewMapValue ¶
func NewStrValue ¶
func (*IValue) Descriptor
deprecated
func (*IValue) GetAnyValue ¶
func (*IValue) GetIntValue ¶
func (*IValue) GetItype ¶
func (x *IValue) GetItype() IValue_IType
func (*IValue) GetMapValue ¶
func (*IValue) GetStrValue ¶
func (*IValue) ProtoMessage ¶
func (*IValue) ProtoMessage()
func (*IValue) ProtoReflect ¶
func (x *IValue) ProtoReflect() protoreflect.Message
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 )
func (IValue_IType) Descriptor ¶
func (IValue_IType) Descriptor() protoreflect.EnumDescriptor
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 (x IValue_IType) Number() protoreflect.EnumNumber
func (IValue_IType) String ¶
func (x IValue_IType) String() string
func (IValue_IType) Type ¶
func (IValue_IType) Type() protoreflect.EnumType
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) GetEndurance ¶
func (*Leg) ProtoMessage ¶
func (*Leg) ProtoMessage()
func (*Leg) ProtoReflect ¶
func (x *Leg) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*SaveParam) ProtoMessage()
func (*SaveParam) ProtoReflect ¶
func (x *SaveParam) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
func (*SaveResp) Descriptor
deprecated
func (*SaveResp) ProtoMessage ¶
func (*SaveResp) ProtoMessage()
func (*SaveResp) ProtoReflect ¶
func (x *SaveResp) ProtoReflect() protoreflect.Message
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 (*Suit) Descriptor
deprecated
func (*Suit) GetAccessory ¶
func (*Suit) ProtoMessage ¶
func (*Suit) ProtoMessage()
func (*Suit) ProtoReflect ¶
func (x *Suit) ProtoReflect() protoreflect.Message
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) }
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.
func NewTStoreServiceClient ¶
func NewTStoreServiceClient(cc grpc.ClientConnInterface) TStoreServiceClient
type TStoreServiceServer ¶
type TStoreServiceServer interface { Save(context.Context, *SaveParam) (*SaveResp, error) Fetch(context.Context, *FetchParam) (*FetchResp, error) }
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) GetCapacity ¶
func (*Trunk) ProtoMessage ¶
func (*Trunk) ProtoMessage()
func (*Trunk) ProtoReflect ¶
func (x *Trunk) ProtoReflect() protoreflect.Message
type UnimplementedTStoreServiceServer ¶
type UnimplementedTStoreServiceServer struct { }
UnimplementedTStoreServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTStoreServiceServer) Fetch ¶
func (*UnimplementedTStoreServiceServer) Fetch(context.Context, *FetchParam) (*FetchResp, error)
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) GetActionRecord ¶
func (x *User) GetActionRecord() *ActionRecord
func (*User) GetActionTime ¶
func (*User) GetAddress ¶
func (*User) GetBattleRecord ¶
func (x *User) GetBattleRecord() *BattleRecord
func (*User) GetBattledRecord ¶
func (x *User) GetBattledRecord() *BattleRecord
func (*User) GetDiscordName ¶
func (*User) GetTeleName ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Weapon) ProtoMessage()
func (*Weapon) ProtoReflect ¶
func (x *Weapon) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.