Documentation ¶
Index ¶
- Constants
- Variables
- func SaveSingle1(m *Single1) (err error)
- func SaveSingle1WithTxn(txn *store.Txn, alloc *store.Allocator, m *Single1) (err error)
- func SaveSingle2(m *Single2) (err error)
- func SaveSingle2WithTxn(txn *store.Txn, alloc *store.Allocator, m *Single2) (err error)
- type Enum
- type Single1
- func (x *Single1) DeepCopy(z *Single1)
- func (*Single1) Descriptor() ([]byte, []int)deprecated
- func (x *Single1) GetEnum() Enum
- func (x *Single1) GetID() int32
- func (x *Single1) GetP1() string
- func (x *Single1) GetP2() []string
- func (x *Single1) GetP5() uint64
- func (x *Single1) GetShardKey() int32
- func (x *Single1) Marshal() ([]byte, error)
- func (*Single1) ProtoMessage()
- func (x *Single1) ProtoReflect() protoreflect.Message
- func (x *Single1) PushToContext(ctx *edge.RequestCtx)
- func (x *Single1) Reset()
- func (x *Single1) String() string
- func (x *Single1) Unmarshal(b []byte) error
- type Single2
- func (x *Single2) DeepCopy(z *Single2)
- func (*Single2) Descriptor() ([]byte, []int)deprecated
- func (x *Single2) GetID() int64
- func (x *Single2) GetP1() string
- func (x *Single2) GetP2() []string
- func (x *Single2) GetP5() uint64
- func (x *Single2) GetShardKey() int32
- func (x *Single2) Marshal() ([]byte, error)
- func (*Single2) ProtoMessage()
- func (x *Single2) ProtoReflect() protoreflect.Message
- func (x *Single2) PushToContext(ctx *edge.RequestCtx)
- func (x *Single2) Reset()
- func (x *Single2) String() string
- func (x *Single2) Unmarshal(b []byte) error
Constants ¶
View Source
const C_Single1 int64 = 683727308
View Source
const C_Single2 int64 = 2982774902
Variables ¶
View Source
var ( Enum_name = map[int32]string{ 0: "None", 1: "Something", 2: "Else", } Enum_value = map[string]int32{ "None": 0, "Something": 1, "Else": 2, } )
Enum value maps for Enum.
View Source
var File_singleton_proto protoreflect.FileDescriptor
View Source
var PoolSingle1 = poolSingle1{}
View Source
var PoolSingle2 = poolSingle2{}
Functions ¶
func SaveSingle1 ¶
func SaveSingle1WithTxn ¶
func SaveSingle2 ¶
Types ¶
type Enum ¶
type Enum int32
func (Enum) Descriptor ¶
func (Enum) Descriptor() protoreflect.EnumDescriptor
func (Enum) EnumDescriptor
deprecated
func (Enum) Number ¶
func (x Enum) Number() protoreflect.EnumNumber
func (Enum) Type ¶
func (Enum) Type() protoreflect.EnumType
type Single1 ¶
type Single1 struct { ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` ShardKey int32 `protobuf:"varint,2,opt,name=ShardKey,proto3" json:"ShardKey,omitempty"` P1 string `protobuf:"bytes,3,opt,name=P1,proto3" json:"P1,omitempty"` P2 []string `protobuf:"bytes,4,rep,name=P2,proto3" json:"P2,omitempty"` P5 uint64 `protobuf:"varint,5,opt,name=P5,proto3" json:"P5,omitempty"` Enum Enum `protobuf:"varint,7,opt,name=Enum,proto3,enum=singleton.Enum" json:"Enum,omitempty"` // contains filtered or unexported fields }
func ReadSingle1 ¶
func ReadSingle1WithTxn ¶
func (*Single1) Descriptor
deprecated
func (*Single1) GetShardKey ¶
func (*Single1) ProtoMessage ¶
func (*Single1) ProtoMessage()
func (*Single1) ProtoReflect ¶
func (x *Single1) ProtoReflect() protoreflect.Message
func (*Single1) PushToContext ¶
func (x *Single1) PushToContext(ctx *edge.RequestCtx)
type Single2 ¶
type Single2 struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` ShardKey int32 `protobuf:"varint,2,opt,name=ShardKey,proto3" json:"ShardKey,omitempty"` P1 string `protobuf:"bytes,3,opt,name=P1,proto3" json:"P1,omitempty"` P2 []string `protobuf:"bytes,4,rep,name=P2,proto3" json:"P2,omitempty"` P5 uint64 `protobuf:"varint,5,opt,name=P5,proto3" json:"P5,omitempty"` // contains filtered or unexported fields }
func ReadSingle2 ¶
func ReadSingle2WithTxn ¶
func (*Single2) Descriptor
deprecated
func (*Single2) GetShardKey ¶
func (*Single2) ProtoMessage ¶
func (*Single2) ProtoMessage()
func (*Single2) ProtoReflect ¶
func (x *Single2) ProtoReflect() protoreflect.Message
func (*Single2) PushToContext ¶
func (x *Single2) PushToContext(ctx *edge.RequestCtx)
Click to show internal directories.
Click to hide internal directories.