Documentation
¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Variables
- type Balance
- func (*Balance) Descriptor() ([]byte, []int)deprecated
- func (x *Balance) GetAddress() string
- func (x *Balance) GetAmount() uint64
- func (x *Balance) GetDenom() string
- func (*Balance) ProtoMessage()
- func (x *Balance) ProtoReflect() protoreflect.Message
- func (x *Balance) Reset()
- func (x *Balance) String() string
- type BalanceAddressDenomIndexKey
- type BalanceDenomIndexKey
- type BalanceIndexKey
- type BalanceIterator
- type BalancePrimaryKey
- type BalanceTable
- type BankStore
- type Enum
- type ExampleAutoIncrementTable
- func (*ExampleAutoIncrementTable) Descriptor() ([]byte, []int)deprecated
- func (x *ExampleAutoIncrementTable) GetId() uint64
- func (x *ExampleAutoIncrementTable) GetX() string
- func (x *ExampleAutoIncrementTable) GetY() int32
- func (*ExampleAutoIncrementTable) ProtoMessage()
- func (x *ExampleAutoIncrementTable) ProtoReflect() protoreflect.Message
- func (x *ExampleAutoIncrementTable) Reset()
- func (x *ExampleAutoIncrementTable) String() string
- type ExampleAutoIncrementTableIdIndexKey
- type ExampleAutoIncrementTableIndexKey
- type ExampleAutoIncrementTableIterator
- type ExampleAutoIncrementTablePrimaryKey
- type ExampleAutoIncrementTableTable
- type ExampleAutoIncrementTableXIndexKey
- type ExampleSingleton
- func (*ExampleSingleton) Descriptor() ([]byte, []int)deprecated
- func (x *ExampleSingleton) GetBar() int32
- func (x *ExampleSingleton) GetFoo() string
- func (*ExampleSingleton) ProtoMessage()
- func (x *ExampleSingleton) ProtoReflect() protoreflect.Message
- func (x *ExampleSingleton) Reset()
- func (x *ExampleSingleton) String() string
- type ExampleSingletonTable
- type ExampleTable
- func (*ExampleTable) Descriptor() ([]byte, []int)deprecated
- func (x *ExampleTable) GetB() bool
- func (x *ExampleTable) GetBz() []byte
- func (x *ExampleTable) GetDur() *durationpb.Duration
- func (x *ExampleTable) GetE() Enum
- func (x *ExampleTable) GetF32() uint32
- func (x *ExampleTable) GetF64() uint64
- func (x *ExampleTable) GetI32() int32
- func (x *ExampleTable) GetI64() int64
- func (x *ExampleTable) GetMap() map[string]uint32
- func (x *ExampleTable) GetMsg() *ExampleTable_ExampleMessage
- func (x *ExampleTable) GetOneof() uint32
- func (x *ExampleTable) GetRepeated() []uint32
- func (x *ExampleTable) GetS32() int32
- func (x *ExampleTable) GetS64() int64
- func (x *ExampleTable) GetSf32() int32
- func (x *ExampleTable) GetSf64() int64
- func (x *ExampleTable) GetStr() string
- func (x *ExampleTable) GetSum() isExampleTable_Sum
- func (x *ExampleTable) GetTs() *timestamppb.Timestamp
- func (x *ExampleTable) GetU32() uint32
- func (x *ExampleTable) GetU64() uint64
- func (*ExampleTable) ProtoMessage()
- func (x *ExampleTable) ProtoReflect() protoreflect.Message
- func (x *ExampleTable) Reset()
- func (x *ExampleTable) String() string
- type ExampleTableBzStrIndexKey
- type ExampleTableIndexKey
- type ExampleTableIterator
- type ExampleTablePrimaryKey
- type ExampleTableStrU32IndexKey
- type ExampleTableTable
- type ExampleTableU32I64StrIndexKey
- func (this ExampleTableU32I64StrIndexKey) WithU32(u32 uint32) ExampleTableU32I64StrIndexKey
- func (this ExampleTableU32I64StrIndexKey) WithU32I64(u32 uint32, i64 int64) ExampleTableU32I64StrIndexKey
- func (this ExampleTableU32I64StrIndexKey) WithU32I64Str(u32 uint32, i64 int64, str string) ExampleTableU32I64StrIndexKey
- type ExampleTableU64StrIndexKey
- type ExampleTable_ExampleMessage
- func (*ExampleTable_ExampleMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ExampleTable_ExampleMessage) GetBar() int32
- func (x *ExampleTable_ExampleMessage) GetFoo() string
- func (*ExampleTable_ExampleMessage) ProtoMessage()
- func (x *ExampleTable_ExampleMessage) ProtoReflect() protoreflect.Message
- func (x *ExampleTable_ExampleMessage) Reset()
- func (x *ExampleTable_ExampleMessage) String() string
- type ExampleTable_Oneof
- type ExampleTimestamp
- func (*ExampleTimestamp) Descriptor() ([]byte, []int)deprecated
- func (x *ExampleTimestamp) GetId() uint64
- func (x *ExampleTimestamp) GetName() string
- func (x *ExampleTimestamp) GetTs() *timestamppb.Timestamp
- func (*ExampleTimestamp) ProtoMessage()
- func (x *ExampleTimestamp) ProtoReflect() protoreflect.Message
- func (x *ExampleTimestamp) Reset()
- func (x *ExampleTimestamp) String() string
- type ExampleTimestampIdIndexKey
- type ExampleTimestampIndexKey
- type ExampleTimestampIterator
- type ExampleTimestampPrimaryKey
- type ExampleTimestampTable
- type ExampleTimestampTsIndexKey
- type SimpleExample
- func (*SimpleExample) Descriptor() ([]byte, []int)deprecated
- func (x *SimpleExample) GetName() string
- func (x *SimpleExample) GetNotUnique() string
- func (x *SimpleExample) GetUnique() string
- func (*SimpleExample) ProtoMessage()
- func (x *SimpleExample) ProtoReflect() protoreflect.Message
- func (x *SimpleExample) Reset()
- func (x *SimpleExample) String() string
- type SimpleExampleIndexKey
- type SimpleExampleIterator
- type SimpleExampleNameIndexKey
- type SimpleExamplePrimaryKey
- type SimpleExampleTable
- type SimpleExampleUniqueIndexKey
- type Supply
- type SupplyDenomIndexKey
- type SupplyIndexKey
- type SupplyIterator
- type SupplyPrimaryKey
- type SupplyTable
- type TestSchemaStore
Constants ¶
This section is empty.
Variables ¶
var ( Enum_name = map[int32]string{ 0: "ENUM_UNSPECIFIED", 1: "ENUM_ONE", 2: "ENUM_TWO", 5: "ENUM_FIVE", -3: "ENUM_NEG_THREE", } Enum_value = map[string]int32{ "ENUM_UNSPECIFIED": 0, "ENUM_ONE": 1, "ENUM_TWO": 2, "ENUM_FIVE": 5, "ENUM_NEG_THREE": -3, } )
Enum value maps for Enum.
var File_testpb_bank_proto protoreflect.FileDescriptor
var File_testpb_test_schema_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Balance ¶
type Balance struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*Balance) Descriptor
deprecated
func (*Balance) GetAddress ¶
func (*Balance) ProtoMessage ¶
func (*Balance) ProtoMessage()
func (*Balance) ProtoReflect ¶
func (x *Balance) ProtoReflect() protoreflect.Message
type BalanceAddressDenomIndexKey ¶
type BalanceAddressDenomIndexKey struct {
// contains filtered or unexported fields
}
func (BalanceAddressDenomIndexKey) WithAddress ¶
func (this BalanceAddressDenomIndexKey) WithAddress(address string) BalanceAddressDenomIndexKey
func (BalanceAddressDenomIndexKey) WithAddressDenom ¶
func (this BalanceAddressDenomIndexKey) WithAddressDenom(address string, denom string) BalanceAddressDenomIndexKey
type BalanceDenomIndexKey ¶
type BalanceDenomIndexKey struct {
// contains filtered or unexported fields
}
func (BalanceDenomIndexKey) WithDenom ¶
func (this BalanceDenomIndexKey) WithDenom(denom string) BalanceDenomIndexKey
type BalanceIndexKey ¶
type BalanceIndexKey interface {
// contains filtered or unexported methods
}
type BalanceIterator ¶
func (BalanceIterator) Value ¶
func (i BalanceIterator) Value() (*Balance, error)
type BalancePrimaryKey ¶
type BalancePrimaryKey = BalanceAddressDenomIndexKey
primary key starting index..
type BalanceTable ¶
type BalanceTable interface { Insert(ctx context.Context, balance *Balance) error Update(ctx context.Context, balance *Balance) error Save(ctx context.Context, balance *Balance) error Delete(ctx context.Context, balance *Balance) error Has(ctx context.Context, address string, denom string) (found bool, err error) // Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. Get(ctx context.Context, address string, denom string) (*Balance, error) List(ctx context.Context, prefixKey BalanceIndexKey, opts ...ormlist.Option) (BalanceIterator, error) ListRange(ctx context.Context, from, to BalanceIndexKey, opts ...ormlist.Option) (BalanceIterator, error) DeleteBy(ctx context.Context, prefixKey BalanceIndexKey) error DeleteRange(ctx context.Context, from, to BalanceIndexKey) error // contains filtered or unexported methods }
func NewBalanceTable ¶
func NewBalanceTable(db ormtable.Schema) (BalanceTable, error)
type BankStore ¶
type BankStore interface { BalanceTable() BalanceTable SupplyTable() SupplyTable // contains filtered or unexported methods }
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 ExampleAutoIncrementTable ¶
type ExampleAutoIncrementTable struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` X string `protobuf:"bytes,2,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,3,opt,name=y,proto3" json:"y,omitempty"` // contains filtered or unexported fields }
func (*ExampleAutoIncrementTable) Descriptor
deprecated
func (*ExampleAutoIncrementTable) Descriptor() ([]byte, []int)
Deprecated: Use ExampleAutoIncrementTable.ProtoReflect.Descriptor instead.
func (*ExampleAutoIncrementTable) GetId ¶
func (x *ExampleAutoIncrementTable) GetId() uint64
func (*ExampleAutoIncrementTable) GetX ¶
func (x *ExampleAutoIncrementTable) GetX() string
func (*ExampleAutoIncrementTable) GetY ¶
func (x *ExampleAutoIncrementTable) GetY() int32
func (*ExampleAutoIncrementTable) ProtoMessage ¶
func (*ExampleAutoIncrementTable) ProtoMessage()
func (*ExampleAutoIncrementTable) ProtoReflect ¶
func (x *ExampleAutoIncrementTable) ProtoReflect() protoreflect.Message
func (*ExampleAutoIncrementTable) Reset ¶
func (x *ExampleAutoIncrementTable) Reset()
func (*ExampleAutoIncrementTable) String ¶
func (x *ExampleAutoIncrementTable) String() string
type ExampleAutoIncrementTableIdIndexKey ¶
type ExampleAutoIncrementTableIdIndexKey struct {
// contains filtered or unexported fields
}
func (ExampleAutoIncrementTableIdIndexKey) WithId ¶
func (this ExampleAutoIncrementTableIdIndexKey) WithId(id uint64) ExampleAutoIncrementTableIdIndexKey
type ExampleAutoIncrementTableIndexKey ¶
type ExampleAutoIncrementTableIndexKey interface {
// contains filtered or unexported methods
}
type ExampleAutoIncrementTableIterator ¶
func (ExampleAutoIncrementTableIterator) Value ¶
func (i ExampleAutoIncrementTableIterator) Value() (*ExampleAutoIncrementTable, error)
type ExampleAutoIncrementTablePrimaryKey ¶
type ExampleAutoIncrementTablePrimaryKey = ExampleAutoIncrementTableIdIndexKey
primary key starting index..
type ExampleAutoIncrementTableTable ¶
type ExampleAutoIncrementTableTable interface { Insert(ctx context.Context, exampleAutoIncrementTable *ExampleAutoIncrementTable) error InsertReturningID(ctx context.Context, exampleAutoIncrementTable *ExampleAutoIncrementTable) (uint64, error) Update(ctx context.Context, exampleAutoIncrementTable *ExampleAutoIncrementTable) error Save(ctx context.Context, exampleAutoIncrementTable *ExampleAutoIncrementTable) error Delete(ctx context.Context, exampleAutoIncrementTable *ExampleAutoIncrementTable) error Has(ctx context.Context, id uint64) (found bool, err error) // Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. Get(ctx context.Context, id uint64) (*ExampleAutoIncrementTable, error) HasByX(ctx context.Context, x string) (found bool, err error) // GetByX returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. GetByX(ctx context.Context, x string) (*ExampleAutoIncrementTable, error) List(ctx context.Context, prefixKey ExampleAutoIncrementTableIndexKey, opts ...ormlist.Option) (ExampleAutoIncrementTableIterator, error) ListRange(ctx context.Context, from, to ExampleAutoIncrementTableIndexKey, opts ...ormlist.Option) (ExampleAutoIncrementTableIterator, error) DeleteBy(ctx context.Context, prefixKey ExampleAutoIncrementTableIndexKey) error DeleteRange(ctx context.Context, from, to ExampleAutoIncrementTableIndexKey) error // contains filtered or unexported methods }
func NewExampleAutoIncrementTableTable ¶
func NewExampleAutoIncrementTableTable(db ormtable.Schema) (ExampleAutoIncrementTableTable, error)
type ExampleAutoIncrementTableXIndexKey ¶
type ExampleAutoIncrementTableXIndexKey struct {
// contains filtered or unexported fields
}
func (ExampleAutoIncrementTableXIndexKey) WithX ¶
func (this ExampleAutoIncrementTableXIndexKey) WithX(x string) ExampleAutoIncrementTableXIndexKey
type ExampleSingleton ¶
type ExampleSingleton struct { Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"` Bar int32 `protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty"` // contains filtered or unexported fields }
func (*ExampleSingleton) Descriptor
deprecated
func (*ExampleSingleton) Descriptor() ([]byte, []int)
Deprecated: Use ExampleSingleton.ProtoReflect.Descriptor instead.
func (*ExampleSingleton) GetBar ¶
func (x *ExampleSingleton) GetBar() int32
func (*ExampleSingleton) GetFoo ¶
func (x *ExampleSingleton) GetFoo() string
func (*ExampleSingleton) ProtoMessage ¶
func (*ExampleSingleton) ProtoMessage()
func (*ExampleSingleton) ProtoReflect ¶
func (x *ExampleSingleton) ProtoReflect() protoreflect.Message
func (*ExampleSingleton) Reset ¶
func (x *ExampleSingleton) Reset()
func (*ExampleSingleton) String ¶
func (x *ExampleSingleton) String() string
type ExampleSingletonTable ¶
type ExampleSingletonTable interface { Get(ctx context.Context) (*ExampleSingleton, error) Save(ctx context.Context, exampleSingleton *ExampleSingleton) error }
singleton store
func NewExampleSingletonTable ¶
func NewExampleSingletonTable(db ormtable.Schema) (ExampleSingletonTable, error)
type ExampleTable ¶
type ExampleTable struct { // Valid key fields: U32 uint32 `protobuf:"varint,1,opt,name=u32,proto3" json:"u32,omitempty"` U64 uint64 `protobuf:"varint,2,opt,name=u64,proto3" json:"u64,omitempty"` Str string `protobuf:"bytes,3,opt,name=str,proto3" json:"str,omitempty"` Bz []byte `protobuf:"bytes,4,opt,name=bz,proto3" json:"bz,omitempty"` Ts *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=ts,proto3" json:"ts,omitempty"` Dur *durationpb.Duration `protobuf:"bytes,6,opt,name=dur,proto3" json:"dur,omitempty"` I32 int32 `protobuf:"varint,7,opt,name=i32,proto3" json:"i32,omitempty"` S32 int32 `protobuf:"zigzag32,8,opt,name=s32,proto3" json:"s32,omitempty"` Sf32 int32 `protobuf:"fixed32,9,opt,name=sf32,proto3" json:"sf32,omitempty"` I64 int64 `protobuf:"varint,10,opt,name=i64,proto3" json:"i64,omitempty"` S64 int64 `protobuf:"zigzag64,11,opt,name=s64,proto3" json:"s64,omitempty"` Sf64 int64 `protobuf:"fixed64,12,opt,name=sf64,proto3" json:"sf64,omitempty"` F32 uint32 `protobuf:"fixed32,13,opt,name=f32,proto3" json:"f32,omitempty"` F64 uint64 `protobuf:"fixed64,14,opt,name=f64,proto3" json:"f64,omitempty"` B bool `protobuf:"varint,15,opt,name=b,proto3" json:"b,omitempty"` E Enum `protobuf:"varint,16,opt,name=e,proto3,enum=testpb.Enum" json:"e,omitempty"` // Invalid key fields: Repeated []uint32 `protobuf:"varint,17,rep,packed,name=repeated,proto3" json:"repeated,omitempty"` Map map[string]uint32 `` /* 149-byte string literal not displayed */ Msg *ExampleTable_ExampleMessage `protobuf:"bytes,19,opt,name=msg,proto3" json:"msg,omitempty"` // Types that are assignable to Sum: // *ExampleTable_Oneof Sum isExampleTable_Sum `protobuf_oneof:"sum"` // contains filtered or unexported fields }
func (*ExampleTable) Descriptor
deprecated
func (*ExampleTable) Descriptor() ([]byte, []int)
Deprecated: Use ExampleTable.ProtoReflect.Descriptor instead.
func (*ExampleTable) GetB ¶
func (x *ExampleTable) GetB() bool
func (*ExampleTable) GetBz ¶
func (x *ExampleTable) GetBz() []byte
func (*ExampleTable) GetDur ¶
func (x *ExampleTable) GetDur() *durationpb.Duration
func (*ExampleTable) GetE ¶
func (x *ExampleTable) GetE() Enum
func (*ExampleTable) GetF32 ¶
func (x *ExampleTable) GetF32() uint32
func (*ExampleTable) GetF64 ¶
func (x *ExampleTable) GetF64() uint64
func (*ExampleTable) GetI32 ¶
func (x *ExampleTable) GetI32() int32
func (*ExampleTable) GetI64 ¶
func (x *ExampleTable) GetI64() int64
func (*ExampleTable) GetMap ¶
func (x *ExampleTable) GetMap() map[string]uint32
func (*ExampleTable) GetMsg ¶
func (x *ExampleTable) GetMsg() *ExampleTable_ExampleMessage
func (*ExampleTable) GetOneof ¶
func (x *ExampleTable) GetOneof() uint32
func (*ExampleTable) GetRepeated ¶
func (x *ExampleTable) GetRepeated() []uint32
func (*ExampleTable) GetS32 ¶
func (x *ExampleTable) GetS32() int32
func (*ExampleTable) GetS64 ¶
func (x *ExampleTable) GetS64() int64
func (*ExampleTable) GetSf32 ¶
func (x *ExampleTable) GetSf32() int32
func (*ExampleTable) GetSf64 ¶
func (x *ExampleTable) GetSf64() int64
func (*ExampleTable) GetStr ¶
func (x *ExampleTable) GetStr() string
func (*ExampleTable) GetSum ¶
func (x *ExampleTable) GetSum() isExampleTable_Sum
func (*ExampleTable) GetTs ¶
func (x *ExampleTable) GetTs() *timestamppb.Timestamp
func (*ExampleTable) GetU32 ¶
func (x *ExampleTable) GetU32() uint32
func (*ExampleTable) GetU64 ¶
func (x *ExampleTable) GetU64() uint64
func (*ExampleTable) ProtoMessage ¶
func (*ExampleTable) ProtoMessage()
func (*ExampleTable) ProtoReflect ¶
func (x *ExampleTable) ProtoReflect() protoreflect.Message
func (*ExampleTable) Reset ¶
func (x *ExampleTable) Reset()
func (*ExampleTable) String ¶
func (x *ExampleTable) String() string
type ExampleTableBzStrIndexKey ¶
type ExampleTableBzStrIndexKey struct {
// contains filtered or unexported fields
}
func (ExampleTableBzStrIndexKey) WithBz ¶
func (this ExampleTableBzStrIndexKey) WithBz(bz []byte) ExampleTableBzStrIndexKey
func (ExampleTableBzStrIndexKey) WithBzStr ¶
func (this ExampleTableBzStrIndexKey) WithBzStr(bz []byte, str string) ExampleTableBzStrIndexKey
type ExampleTableIndexKey ¶
type ExampleTableIndexKey interface {
// contains filtered or unexported methods
}
type ExampleTableIterator ¶
func (ExampleTableIterator) Value ¶
func (i ExampleTableIterator) Value() (*ExampleTable, error)
type ExampleTablePrimaryKey ¶
type ExampleTablePrimaryKey = ExampleTableU32I64StrIndexKey
primary key starting index..
type ExampleTableStrU32IndexKey ¶
type ExampleTableStrU32IndexKey struct {
// contains filtered or unexported fields
}
func (ExampleTableStrU32IndexKey) WithStr ¶
func (this ExampleTableStrU32IndexKey) WithStr(str string) ExampleTableStrU32IndexKey
func (ExampleTableStrU32IndexKey) WithStrU32 ¶
func (this ExampleTableStrU32IndexKey) WithStrU32(str string, u32 uint32) ExampleTableStrU32IndexKey
type ExampleTableTable ¶
type ExampleTableTable interface { Insert(ctx context.Context, exampleTable *ExampleTable) error Update(ctx context.Context, exampleTable *ExampleTable) error Save(ctx context.Context, exampleTable *ExampleTable) error Delete(ctx context.Context, exampleTable *ExampleTable) error Has(ctx context.Context, u32 uint32, i64 int64, str string) (found bool, err error) // Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. Get(ctx context.Context, u32 uint32, i64 int64, str string) (*ExampleTable, error) HasByU64Str(ctx context.Context, u64 uint64, str string) (found bool, err error) // GetByU64Str returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. GetByU64Str(ctx context.Context, u64 uint64, str string) (*ExampleTable, error) List(ctx context.Context, prefixKey ExampleTableIndexKey, opts ...ormlist.Option) (ExampleTableIterator, error) ListRange(ctx context.Context, from, to ExampleTableIndexKey, opts ...ormlist.Option) (ExampleTableIterator, error) DeleteBy(ctx context.Context, prefixKey ExampleTableIndexKey) error DeleteRange(ctx context.Context, from, to ExampleTableIndexKey) error // contains filtered or unexported methods }
func NewExampleTableTable ¶
func NewExampleTableTable(db ormtable.Schema) (ExampleTableTable, error)
type ExampleTableU32I64StrIndexKey ¶
type ExampleTableU32I64StrIndexKey struct {
// contains filtered or unexported fields
}
func (ExampleTableU32I64StrIndexKey) WithU32 ¶
func (this ExampleTableU32I64StrIndexKey) WithU32(u32 uint32) ExampleTableU32I64StrIndexKey
func (ExampleTableU32I64StrIndexKey) WithU32I64 ¶
func (this ExampleTableU32I64StrIndexKey) WithU32I64(u32 uint32, i64 int64) ExampleTableU32I64StrIndexKey
func (ExampleTableU32I64StrIndexKey) WithU32I64Str ¶
func (this ExampleTableU32I64StrIndexKey) WithU32I64Str(u32 uint32, i64 int64, str string) ExampleTableU32I64StrIndexKey
type ExampleTableU64StrIndexKey ¶
type ExampleTableU64StrIndexKey struct {
// contains filtered or unexported fields
}
func (ExampleTableU64StrIndexKey) WithU64 ¶
func (this ExampleTableU64StrIndexKey) WithU64(u64 uint64) ExampleTableU64StrIndexKey
func (ExampleTableU64StrIndexKey) WithU64Str ¶
func (this ExampleTableU64StrIndexKey) WithU64Str(u64 uint64, str string) ExampleTableU64StrIndexKey
type ExampleTable_ExampleMessage ¶
type ExampleTable_ExampleMessage struct { Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"` Bar int32 `protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty"` // contains filtered or unexported fields }
func (*ExampleTable_ExampleMessage) Descriptor
deprecated
func (*ExampleTable_ExampleMessage) Descriptor() ([]byte, []int)
Deprecated: Use ExampleTable_ExampleMessage.ProtoReflect.Descriptor instead.
func (*ExampleTable_ExampleMessage) GetBar ¶
func (x *ExampleTable_ExampleMessage) GetBar() int32
func (*ExampleTable_ExampleMessage) GetFoo ¶
func (x *ExampleTable_ExampleMessage) GetFoo() string
func (*ExampleTable_ExampleMessage) ProtoMessage ¶
func (*ExampleTable_ExampleMessage) ProtoMessage()
func (*ExampleTable_ExampleMessage) ProtoReflect ¶
func (x *ExampleTable_ExampleMessage) ProtoReflect() protoreflect.Message
func (*ExampleTable_ExampleMessage) Reset ¶
func (x *ExampleTable_ExampleMessage) Reset()
func (*ExampleTable_ExampleMessage) String ¶
func (x *ExampleTable_ExampleMessage) String() string
type ExampleTable_Oneof ¶
type ExampleTable_Oneof struct {
Oneof uint32 `protobuf:"varint,20,opt,name=oneof,proto3,oneof"`
}
type ExampleTimestamp ¶
type ExampleTimestamp struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Ts *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ts,proto3" json:"ts,omitempty"` // contains filtered or unexported fields }
func (*ExampleTimestamp) Descriptor
deprecated
func (*ExampleTimestamp) Descriptor() ([]byte, []int)
Deprecated: Use ExampleTimestamp.ProtoReflect.Descriptor instead.
func (*ExampleTimestamp) GetId ¶
func (x *ExampleTimestamp) GetId() uint64
func (*ExampleTimestamp) GetName ¶
func (x *ExampleTimestamp) GetName() string
func (*ExampleTimestamp) GetTs ¶
func (x *ExampleTimestamp) GetTs() *timestamppb.Timestamp
func (*ExampleTimestamp) ProtoMessage ¶
func (*ExampleTimestamp) ProtoMessage()
func (*ExampleTimestamp) ProtoReflect ¶
func (x *ExampleTimestamp) ProtoReflect() protoreflect.Message
func (*ExampleTimestamp) Reset ¶
func (x *ExampleTimestamp) Reset()
func (*ExampleTimestamp) String ¶
func (x *ExampleTimestamp) String() string
type ExampleTimestampIdIndexKey ¶
type ExampleTimestampIdIndexKey struct {
// contains filtered or unexported fields
}
func (ExampleTimestampIdIndexKey) WithId ¶
func (this ExampleTimestampIdIndexKey) WithId(id uint64) ExampleTimestampIdIndexKey
type ExampleTimestampIndexKey ¶
type ExampleTimestampIndexKey interface {
// contains filtered or unexported methods
}
type ExampleTimestampIterator ¶
func (ExampleTimestampIterator) Value ¶
func (i ExampleTimestampIterator) Value() (*ExampleTimestamp, error)
type ExampleTimestampPrimaryKey ¶
type ExampleTimestampPrimaryKey = ExampleTimestampIdIndexKey
primary key starting index..
type ExampleTimestampTable ¶
type ExampleTimestampTable interface { Insert(ctx context.Context, exampleTimestamp *ExampleTimestamp) error InsertReturningID(ctx context.Context, exampleTimestamp *ExampleTimestamp) (uint64, error) Update(ctx context.Context, exampleTimestamp *ExampleTimestamp) error Save(ctx context.Context, exampleTimestamp *ExampleTimestamp) error Delete(ctx context.Context, exampleTimestamp *ExampleTimestamp) error Has(ctx context.Context, id uint64) (found bool, err error) // Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. Get(ctx context.Context, id uint64) (*ExampleTimestamp, error) List(ctx context.Context, prefixKey ExampleTimestampIndexKey, opts ...ormlist.Option) (ExampleTimestampIterator, error) ListRange(ctx context.Context, from, to ExampleTimestampIndexKey, opts ...ormlist.Option) (ExampleTimestampIterator, error) DeleteBy(ctx context.Context, prefixKey ExampleTimestampIndexKey) error DeleteRange(ctx context.Context, from, to ExampleTimestampIndexKey) error // contains filtered or unexported methods }
func NewExampleTimestampTable ¶
func NewExampleTimestampTable(db ormtable.Schema) (ExampleTimestampTable, error)
type ExampleTimestampTsIndexKey ¶
type ExampleTimestampTsIndexKey struct {
// contains filtered or unexported fields
}
func (ExampleTimestampTsIndexKey) WithTs ¶
func (this ExampleTimestampTsIndexKey) WithTs(ts *timestamppb.Timestamp) ExampleTimestampTsIndexKey
type SimpleExample ¶
type SimpleExample struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Unique string `protobuf:"bytes,2,opt,name=unique,proto3" json:"unique,omitempty"` NotUnique string `protobuf:"bytes,3,opt,name=not_unique,json=notUnique,proto3" json:"not_unique,omitempty"` // contains filtered or unexported fields }
func (*SimpleExample) Descriptor
deprecated
func (*SimpleExample) Descriptor() ([]byte, []int)
Deprecated: Use SimpleExample.ProtoReflect.Descriptor instead.
func (*SimpleExample) GetName ¶
func (x *SimpleExample) GetName() string
func (*SimpleExample) GetNotUnique ¶
func (x *SimpleExample) GetNotUnique() string
func (*SimpleExample) GetUnique ¶
func (x *SimpleExample) GetUnique() string
func (*SimpleExample) ProtoMessage ¶
func (*SimpleExample) ProtoMessage()
func (*SimpleExample) ProtoReflect ¶
func (x *SimpleExample) ProtoReflect() protoreflect.Message
func (*SimpleExample) Reset ¶
func (x *SimpleExample) Reset()
func (*SimpleExample) String ¶
func (x *SimpleExample) String() string
type SimpleExampleIndexKey ¶
type SimpleExampleIndexKey interface {
// contains filtered or unexported methods
}
type SimpleExampleIterator ¶
func (SimpleExampleIterator) Value ¶
func (i SimpleExampleIterator) Value() (*SimpleExample, error)
type SimpleExampleNameIndexKey ¶
type SimpleExampleNameIndexKey struct {
// contains filtered or unexported fields
}
func (SimpleExampleNameIndexKey) WithName ¶
func (this SimpleExampleNameIndexKey) WithName(name string) SimpleExampleNameIndexKey
type SimpleExamplePrimaryKey ¶
type SimpleExamplePrimaryKey = SimpleExampleNameIndexKey
primary key starting index..
type SimpleExampleTable ¶
type SimpleExampleTable interface { Insert(ctx context.Context, simpleExample *SimpleExample) error Update(ctx context.Context, simpleExample *SimpleExample) error Save(ctx context.Context, simpleExample *SimpleExample) error Delete(ctx context.Context, simpleExample *SimpleExample) error Has(ctx context.Context, name string) (found bool, err error) // Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. Get(ctx context.Context, name string) (*SimpleExample, error) HasByUnique(ctx context.Context, unique string) (found bool, err error) // GetByUnique returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. GetByUnique(ctx context.Context, unique string) (*SimpleExample, error) List(ctx context.Context, prefixKey SimpleExampleIndexKey, opts ...ormlist.Option) (SimpleExampleIterator, error) ListRange(ctx context.Context, from, to SimpleExampleIndexKey, opts ...ormlist.Option) (SimpleExampleIterator, error) DeleteBy(ctx context.Context, prefixKey SimpleExampleIndexKey) error DeleteRange(ctx context.Context, from, to SimpleExampleIndexKey) error // contains filtered or unexported methods }
func NewSimpleExampleTable ¶
func NewSimpleExampleTable(db ormtable.Schema) (SimpleExampleTable, error)
type SimpleExampleUniqueIndexKey ¶
type SimpleExampleUniqueIndexKey struct {
// contains filtered or unexported fields
}
func (SimpleExampleUniqueIndexKey) WithUnique ¶
func (this SimpleExampleUniqueIndexKey) WithUnique(unique string) SimpleExampleUniqueIndexKey
type Supply ¶
type Supply struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*Supply) Descriptor
deprecated
func (*Supply) ProtoMessage ¶
func (*Supply) ProtoMessage()
func (*Supply) ProtoReflect ¶
func (x *Supply) ProtoReflect() protoreflect.Message
type SupplyDenomIndexKey ¶
type SupplyDenomIndexKey struct {
// contains filtered or unexported fields
}
func (SupplyDenomIndexKey) WithDenom ¶
func (this SupplyDenomIndexKey) WithDenom(denom string) SupplyDenomIndexKey
type SupplyIndexKey ¶
type SupplyIndexKey interface {
// contains filtered or unexported methods
}
type SupplyIterator ¶
func (SupplyIterator) Value ¶
func (i SupplyIterator) Value() (*Supply, error)
type SupplyTable ¶
type SupplyTable interface { Insert(ctx context.Context, supply *Supply) error Update(ctx context.Context, supply *Supply) error Save(ctx context.Context, supply *Supply) error Delete(ctx context.Context, supply *Supply) error Has(ctx context.Context, denom string) (found bool, err error) // Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. Get(ctx context.Context, denom string) (*Supply, error) List(ctx context.Context, prefixKey SupplyIndexKey, opts ...ormlist.Option) (SupplyIterator, error) ListRange(ctx context.Context, from, to SupplyIndexKey, opts ...ormlist.Option) (SupplyIterator, error) DeleteBy(ctx context.Context, prefixKey SupplyIndexKey) error DeleteRange(ctx context.Context, from, to SupplyIndexKey) error // contains filtered or unexported methods }
func NewSupplyTable ¶
func NewSupplyTable(db ormtable.Schema) (SupplyTable, error)
type TestSchemaStore ¶
type TestSchemaStore interface { ExampleTableTable() ExampleTableTable ExampleAutoIncrementTableTable() ExampleAutoIncrementTableTable ExampleSingletonTable() ExampleSingletonTable ExampleTimestampTable() ExampleTimestampTable SimpleExampleTable() SimpleExampleTable // contains filtered or unexported methods }
func NewTestSchemaStore ¶
func NewTestSchemaStore(db ormtable.Schema) (TestSchemaStore, error)