Documentation ¶
Index ¶
- Constants
- Variables
- type Enum
- type Single1
- func (x *Single1) Clone() *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 (x *Single1) MarshalJSON() ([]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
- func (x *Single1) UnmarshalJSON(b []byte) error
- type Single1LocalSingleton
- func (r *Single1LocalSingleton) Read(m *Single1) (*Single1, error)
- func (r *Single1LocalSingleton) ReadWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Single1) (*Single1, error)
- func (r *Single1LocalSingleton) Save(m *Single1) (err error)
- func (r *Single1LocalSingleton) SaveWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Single1) (err error)
- type Single2
- func (x *Single2) Clone() *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 (x *Single2) MarshalJSON() ([]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
- func (x *Single2) UnmarshalJSON(b []byte) error
- type Single2LocalSingleton
- func (r *Single2LocalSingleton) Read(m *Single2) (*Single2, error)
- func (r *Single2LocalSingleton) ReadWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Single2) (*Single2, error)
- func (r *Single2LocalSingleton) Save(m *Single2) (err error)
- func (r *Single2LocalSingleton) SaveWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Single2) (err 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 ¶
This section is empty.
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 (*Single1) Descriptor
deprecated
func (*Single1) GetShardKey ¶
func (*Single1) MarshalJSON ¶ added in v0.10.3
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)
func (*Single1) UnmarshalJSON ¶ added in v0.10.3
type Single1LocalSingleton ¶ added in v0.12.0
type Single1LocalSingleton struct {
// contains filtered or unexported fields
}
func NewSingle1LocalSingleton ¶ added in v0.12.0
func NewSingle1LocalSingleton(s rony.Store) *Single1LocalSingleton
func (*Single1LocalSingleton) Read ¶ added in v0.12.0
func (r *Single1LocalSingleton) Read(m *Single1) (*Single1, error)
func (*Single1LocalSingleton) ReadWithTxn ¶ added in v0.12.0
func (*Single1LocalSingleton) Save ¶ added in v0.12.0
func (r *Single1LocalSingleton) Save(m *Single1) (err error)
func (*Single1LocalSingleton) SaveWithTxn ¶ added in v0.12.0
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 (*Single2) Descriptor
deprecated
func (*Single2) GetShardKey ¶
func (*Single2) MarshalJSON ¶ added in v0.10.3
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)
func (*Single2) UnmarshalJSON ¶ added in v0.10.3
type Single2LocalSingleton ¶ added in v0.12.0
type Single2LocalSingleton struct {
// contains filtered or unexported fields
}
func NewSingle2LocalSingleton ¶ added in v0.12.0
func NewSingle2LocalSingleton(s rony.Store) *Single2LocalSingleton
func (*Single2LocalSingleton) Read ¶ added in v0.12.0
func (r *Single2LocalSingleton) Read(m *Single2) (*Single2, error)
func (*Single2LocalSingleton) ReadWithTxn ¶ added in v0.12.0
func (*Single2LocalSingleton) Save ¶ added in v0.12.0
func (r *Single2LocalSingleton) Save(m *Single2) (err error)
func (*Single2LocalSingleton) SaveWithTxn ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.