Documentation ¶
Index ¶
- Constants
- Variables
- func CreateModel1(m *Model1) error
- func CreateModel1WithTxn(txn *rony.StoreLocalTxn, alloc *tools.Allocator, m *Model1) (err error)
- func CreateModel2(m *Model2) error
- func CreateModel2WithTxn(txn *rony.StoreLocalTxn, alloc *tools.Allocator, m *Model2) (err error)
- func DeleteModel1(id int32, shardKey int32) error
- func DeleteModel1WithTxn(txn *rony.StoreLocalTxn, alloc *tools.Allocator, id int32, shardKey int32) error
- func DeleteModel2(id int64, shardKey int32, p1 string) error
- func DeleteModel2WithTxn(txn *rony.StoreLocalTxn, alloc *tools.Allocator, id int64, shardKey int32, ...) error
- func IterModel1(txn *rony.StoreLocalTxn, alloc *tools.Allocator, cb func(m *Model1) bool, ...) error
- func IterModel1ByEnum(txn *rony.StoreLocalTxn, alloc *tools.Allocator, enum Enum, ...) error
- func IterModel1ByID(txn *rony.StoreLocalTxn, alloc *tools.Allocator, id int32, ...) error
- func IterModel2(txn *rony.StoreLocalTxn, alloc *tools.Allocator, cb func(m *Model2) bool, ...) error
- func IterModel2ByIDAndShardKey(txn *rony.StoreLocalTxn, alloc *tools.Allocator, id int64, shardKey int32, ...) error
- func IterModel2ByP1(txn *rony.StoreLocalTxn, alloc *tools.Allocator, p1 string, ...) error
- func SaveModel1(m *Model1) error
- func SaveModel1WithTxn(txn *rony.StoreLocalTxn, alloc *tools.Allocator, m *Model1) (err error)
- func SaveModel2(m *Model2) error
- func SaveModel2WithTxn(txn *rony.StoreLocalTxn, alloc *tools.Allocator, m *Model2) (err error)
- func UpdateModel1(id int32, shardKey int32, m *Model1) error
- func UpdateModel1WithTxn(txn *rony.StoreLocalTxn, alloc *tools.Allocator, m *Model1) error
- func UpdateModel2(id int64, shardKey int32, p1 string, m *Model2) error
- func UpdateModel2WithTxn(txn *rony.StoreLocalTxn, alloc *tools.Allocator, m *Model2) error
- type Enum
- type Model1
- func ListModel1(offsetID int32, offsetShardKey int32, lo *store.ListOption, ...) ([]*Model1, error)
- func ListModel1ByEnum(enum Enum, offsetShardKey int32, offsetID int32, lo *store.ListOption, ...) ([]*Model1, error)
- func ListModel1ByID(id int32, offsetShardKey int32, lo *store.ListOption, ...) ([]*Model1, error)
- func ListModel1ByP1(p1 string, lo *store.ListOption, cond func(m *Model1) bool) ([]*Model1, error)
- func ListModel1ByP2(p2 string, lo *store.ListOption, cond func(m *Model1) bool) ([]*Model1, error)
- func ReadModel1(id int32, shardKey int32, m *Model1) (*Model1, error)
- func ReadModel1ByEnumAndShardKeyAndID(enum Enum, shardKey int32, id int32, m *Model1) (*Model1, error)
- func ReadModel1ByEnumAndShardKeyAndIDWithTxn(txn *rony.StoreLocalTxn, alloc *tools.Allocator, enum Enum, shardKey int32, ...) (*Model1, error)
- func ReadModel1WithTxn(txn *rony.StoreLocalTxn, alloc *tools.Allocator, id int32, shardKey int32, ...) (*Model1, error)
- func (x *Model1) DeepCopy(z *Model1)
- func (*Model1) Descriptor() ([]byte, []int)deprecated
- func (x *Model1) GetEnum() Enum
- func (x *Model1) GetID() int32
- func (x *Model1) GetP1() string
- func (x *Model1) GetP2() []string
- func (x *Model1) GetP5() uint64
- func (x *Model1) GetShardKey() int32
- func (x *Model1) HasP2(xx string) bool
- func (x *Model1) Marshal() ([]byte, error)
- func (*Model1) ProtoMessage()
- func (x *Model1) ProtoReflect() protoreflect.Message
- func (x *Model1) PushToContext(ctx *edge.RequestCtx)
- func (x *Model1) Reset()
- func (x *Model1) String() string
- func (x *Model1) Unmarshal(b []byte) error
- type Model1Order
- type Model2
- func ListModel2(offsetID int64, offsetShardKey int32, offsetP1 string, lo *store.ListOption, ...) ([]*Model2, error)
- func ListModel2ByIDAndShardKey(id int64, shardKey int32, offsetP1 string, lo *store.ListOption, ...) ([]*Model2, error)
- func ListModel2ByP1(p1 string, offsetShardKey int32, offsetID int64, lo *store.ListOption, ...) ([]*Model2, error)
- func ReadModel2(id int64, shardKey int32, p1 string, m *Model2) (*Model2, error)
- func ReadModel2ByP1AndShardKeyAndID(p1 string, shardKey int32, id int64, m *Model2) (*Model2, error)
- func ReadModel2ByP1AndShardKeyAndIDWithTxn(txn *rony.StoreLocalTxn, alloc *tools.Allocator, p1 string, shardKey int32, ...) (*Model2, error)
- func ReadModel2WithTxn(txn *rony.StoreLocalTxn, alloc *tools.Allocator, id int64, shardKey int32, ...) (*Model2, error)
- func (x *Model2) DeepCopy(z *Model2)
- func (*Model2) Descriptor() ([]byte, []int)deprecated
- func (x *Model2) GetID() int64
- func (x *Model2) GetP1() string
- func (x *Model2) GetP2() []string
- func (x *Model2) GetP5() uint64
- func (x *Model2) GetShardKey() int32
- func (x *Model2) HasP2(xx string) bool
- func (x *Model2) Marshal() ([]byte, error)
- func (*Model2) ProtoMessage()
- func (x *Model2) ProtoReflect() protoreflect.Message
- func (x *Model2) PushToContext(ctx *edge.RequestCtx)
- func (x *Model2) Reset()
- func (x *Model2) String() string
- func (x *Model2) Unmarshal(b []byte) error
- type Model2Order
Constants ¶
View Source
const C_Model1 int64 = 2074613123
View Source
const C_Model2 int64 = 3802219577
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_model_proto protoreflect.FileDescriptor
View Source
var PoolModel1 = poolModel1{}
View Source
var PoolModel2 = poolModel2{}
Functions ¶
func CreateModel1 ¶ added in v0.5.25
func CreateModel1WithTxn ¶ added in v0.5.25
func CreateModel2 ¶ added in v0.5.25
func CreateModel2WithTxn ¶ added in v0.5.25
func DeleteModel1 ¶
func DeleteModel1WithTxn ¶ added in v0.3.12
func DeleteModel2WithTxn ¶ added in v0.3.12
func IterModel1 ¶ added in v0.3.14
func IterModel1(txn *rony.StoreLocalTxn, alloc *tools.Allocator, cb func(m *Model1) bool, orderBy ...Model1Order) error
func IterModel1ByEnum ¶ added in v0.3.13
func IterModel1ByID ¶ added in v0.3.13
func IterModel2 ¶ added in v0.3.14
func IterModel2(txn *rony.StoreLocalTxn, alloc *tools.Allocator, cb func(m *Model2) bool, orderBy ...Model2Order) error
func IterModel2ByIDAndShardKey ¶ added in v0.3.13
func IterModel2ByP1 ¶ added in v0.3.13
func SaveModel1 ¶
func SaveModel1WithTxn ¶ added in v0.3.8
func SaveModel2 ¶
func SaveModel2WithTxn ¶ added in v0.3.8
func UpdateModel1WithTxn ¶ added in v0.5.25
func UpdateModel2 ¶ added in v0.5.25
func UpdateModel2WithTxn ¶ added in v0.5.25
Types ¶
type Enum ¶ added in v0.3.9
type Enum int32
func (Enum) Descriptor ¶ added in v0.3.9
func (Enum) Descriptor() protoreflect.EnumDescriptor
func (Enum) EnumDescriptor
deprecated
added in
v0.3.9
func (Enum) Number ¶ added in v0.3.9
func (x Enum) Number() protoreflect.EnumNumber
func (Enum) Type ¶ added in v0.3.9
func (Enum) Type() protoreflect.EnumType
type Model1 ¶
type Model1 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=model.Enum" json:"Enum,omitempty"` // contains filtered or unexported fields }
func ListModel1 ¶ added in v0.3.6
func ListModel1( offsetID int32, offsetShardKey int32, lo *store.ListOption, cond func(m *Model1) bool, orderBy ...Model1Order, ) ([]*Model1, error)
func ListModel1ByEnum ¶ added in v0.3.9
func ListModel1ByID ¶ added in v0.3.10
func ListModel1ByP1 ¶ added in v0.3.9
func ListModel1ByP2 ¶ added in v0.3.9
func ReadModel1ByEnumAndShardKeyAndID ¶ added in v0.3.9
func ReadModel1ByEnumAndShardKeyAndIDWithTxn ¶ added in v0.3.9
func ReadModel1WithTxn ¶ added in v0.3.8
func (*Model1) Descriptor
deprecated
func (*Model1) GetShardKey ¶
func (*Model1) ProtoMessage ¶
func (*Model1) ProtoMessage()
func (*Model1) ProtoReflect ¶
func (x *Model1) ProtoReflect() protoreflect.Message
func (*Model1) PushToContext ¶
func (x *Model1) PushToContext(ctx *edge.RequestCtx)
type Model1Order ¶ added in v0.8.3
type Model1Order string
const Model1OrderByEnum Model1Order = "Enum"
type Model2 ¶
type Model2 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 ListModel2 ¶ added in v0.3.6
func ListModel2( offsetID int64, offsetShardKey int32, offsetP1 string, lo *store.ListOption, cond func(m *Model2) bool, orderBy ...Model2Order, ) ([]*Model2, error)
func ListModel2ByIDAndShardKey ¶ added in v0.3.10
func ListModel2ByP1 ¶ added in v0.3.9
func ReadModel2ByP1AndShardKeyAndIDWithTxn ¶ added in v0.3.8
func ReadModel2WithTxn ¶ added in v0.3.8
func (*Model2) Descriptor
deprecated
func (*Model2) GetShardKey ¶
func (*Model2) ProtoMessage ¶
func (*Model2) ProtoMessage()
func (*Model2) ProtoReflect ¶
func (x *Model2) ProtoReflect() protoreflect.Message
func (*Model2) PushToContext ¶
func (x *Model2) PushToContext(ctx *edge.RequestCtx)
Click to show internal directories.
Click to hide internal directories.