testpb

package
v1.0.0-alpha.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_testpb_bank_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Balance.ProtoReflect.Descriptor instead.

func (*Balance) GetAddress

func (x *Balance) GetAddress() string

func (*Balance) GetAmount

func (x *Balance) GetAmount() uint64

func (*Balance) GetDenom

func (x *Balance) GetDenom() string

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) ProtoReflect

func (x *Balance) ProtoReflect() protoreflect.Message

func (*Balance) Reset

func (x *Balance) Reset()

func (*Balance) String

func (x *Balance) String() string

type BalanceAddressDenomIndexKey

type BalanceAddressDenomIndexKey struct {
	// contains filtered or unexported fields
}

func (BalanceAddressDenomIndexKey) WithAddress

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

type BalanceIterator struct {
	ormtable.Iterator
}

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
}

func NewBankStore

func NewBankStore(db ormtable.Schema) (BankStore, error)

type Enum

type Enum int32
const (
	Enum_ENUM_UNSPECIFIED Enum = 0
	Enum_ENUM_ONE         Enum = 1
	Enum_ENUM_TWO         Enum = 2
	Enum_ENUM_FIVE        Enum = 5
	Enum_ENUM_NEG_THREE   Enum = -3
)

func (Enum) Descriptor

func (Enum) Descriptor() protoreflect.EnumDescriptor

func (Enum) Enum

func (x Enum) Enum() *Enum

func (Enum) EnumDescriptor deprecated

func (Enum) EnumDescriptor() ([]byte, []int)

Deprecated: Use Enum.Descriptor instead.

func (Enum) Number

func (x Enum) Number() protoreflect.EnumNumber

func (Enum) String

func (x Enum) String() string

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 (*ExampleAutoIncrementTable) GetY

func (x *ExampleAutoIncrementTable) GetY() int32

func (*ExampleAutoIncrementTable) ProtoMessage

func (*ExampleAutoIncrementTable) ProtoMessage()

func (*ExampleAutoIncrementTable) ProtoReflect

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

type ExampleAutoIncrementTableIndexKey

type ExampleAutoIncrementTableIndexKey interface {
	// contains filtered or unexported methods
}

type ExampleAutoIncrementTableIterator

type ExampleAutoIncrementTableIterator struct {
	ormtable.Iterator
}

func (ExampleAutoIncrementTableIterator) Value

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

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 (*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 (ExampleTableBzStrIndexKey) WithBzStr

type ExampleTableIndexKey

type ExampleTableIndexKey interface {
	// contains filtered or unexported methods
}

type ExampleTableIterator

type ExampleTableIterator struct {
	ormtable.Iterator
}

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 (ExampleTableStrU32IndexKey) WithStrU32

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 (ExampleTableU32I64StrIndexKey) WithU32I64

func (ExampleTableU32I64StrIndexKey) WithU32I64Str

type ExampleTableU64StrIndexKey

type ExampleTableU64StrIndexKey struct {
	// contains filtered or unexported fields
}

func (ExampleTableU64StrIndexKey) WithU64

func (ExampleTableU64StrIndexKey) WithU64Str

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 (*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 (*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

type ExampleTimestampIndexKey

type ExampleTimestampIndexKey interface {
	// contains filtered or unexported methods
}

type ExampleTimestampIterator

type ExampleTimestampIterator struct {
	ormtable.Iterator
}

func (ExampleTimestampIterator) Value

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

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

type SimpleExampleIterator struct {
	ormtable.Iterator
}

func (SimpleExampleIterator) Value

type SimpleExampleNameIndexKey

type SimpleExampleNameIndexKey struct {
	// contains filtered or unexported fields
}

func (SimpleExampleNameIndexKey) WithName

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Supply.ProtoReflect.Descriptor instead.

func (*Supply) GetAmount

func (x *Supply) GetAmount() uint64

func (*Supply) GetDenom

func (x *Supply) GetDenom() string

func (*Supply) ProtoMessage

func (*Supply) ProtoMessage()

func (*Supply) ProtoReflect

func (x *Supply) ProtoReflect() protoreflect.Message

func (*Supply) Reset

func (x *Supply) Reset()

func (*Supply) String

func (x *Supply) String() string

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

type SupplyIterator struct {
	ormtable.Iterator
}

func (SupplyIterator) Value

func (i SupplyIterator) Value() (*Supply, error)

type SupplyPrimaryKey

type SupplyPrimaryKey = SupplyDenomIndexKey

primary key starting index..

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL