orderbookv1alpha1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var File_regen_ecocredit_orderbook_v1alpha1_memory_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BuyOrderBatchSelector

type BuyOrderBatchSelector struct {

	// buy_order_id is the buy order ID.
	BuyOrderId uint64 `protobuf:"varint,1,opt,name=buy_order_id,json=buyOrderId,proto3" json:"buy_order_id,omitempty"`
	// batch_id is the batch ID.
	BatchId uint64 `protobuf:"varint,2,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// contains filtered or unexported fields
}

BuyOrderBatchSelector indexes a buy order with batch selector.

func (*BuyOrderBatchSelector) Descriptor deprecated

func (*BuyOrderBatchSelector) Descriptor() ([]byte, []int)

Deprecated: Use BuyOrderBatchSelector.ProtoReflect.Descriptor instead.

func (*BuyOrderBatchSelector) GetBatchId

func (x *BuyOrderBatchSelector) GetBatchId() uint64

func (*BuyOrderBatchSelector) GetBuyOrderId

func (x *BuyOrderBatchSelector) GetBuyOrderId() uint64

func (*BuyOrderBatchSelector) ProtoMessage

func (*BuyOrderBatchSelector) ProtoMessage()

func (*BuyOrderBatchSelector) ProtoReflect

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

func (*BuyOrderBatchSelector) Reset

func (x *BuyOrderBatchSelector) Reset()

func (*BuyOrderBatchSelector) String

func (x *BuyOrderBatchSelector) String() string

type BuyOrderBatchSelectorBatchIdIndexKey

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

func (BuyOrderBatchSelectorBatchIdIndexKey) WithBatchId

type BuyOrderBatchSelectorBuyOrderIdBatchIdIndexKey

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

func (BuyOrderBatchSelectorBuyOrderIdBatchIdIndexKey) WithBuyOrderId

func (BuyOrderBatchSelectorBuyOrderIdBatchIdIndexKey) WithBuyOrderIdBatchId

type BuyOrderBatchSelectorIndexKey

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

type BuyOrderBatchSelectorIterator

type BuyOrderBatchSelectorIterator struct {
	ormtable.Iterator
}

func (BuyOrderBatchSelectorIterator) Value

type BuyOrderBatchSelectorPrimaryKey

type BuyOrderBatchSelectorPrimaryKey = BuyOrderBatchSelectorBuyOrderIdBatchIdIndexKey

primary key starting index..

type BuyOrderBatchSelectorTable

type BuyOrderBatchSelectorTable interface {
	Insert(ctx context.Context, buyOrderBatchSelector *BuyOrderBatchSelector) error
	Update(ctx context.Context, buyOrderBatchSelector *BuyOrderBatchSelector) error
	Save(ctx context.Context, buyOrderBatchSelector *BuyOrderBatchSelector) error
	Delete(ctx context.Context, buyOrderBatchSelector *BuyOrderBatchSelector) error
	Has(ctx context.Context, buy_order_id uint64, batch_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, buy_order_id uint64, batch_id uint64) (*BuyOrderBatchSelector, error)
	List(ctx context.Context, prefixKey BuyOrderBatchSelectorIndexKey, opts ...ormlist.Option) (BuyOrderBatchSelectorIterator, error)
	ListRange(ctx context.Context, from, to BuyOrderBatchSelectorIndexKey, opts ...ormlist.Option) (BuyOrderBatchSelectorIterator, error)
	DeleteBy(ctx context.Context, prefixKey BuyOrderBatchSelectorIndexKey) error
	DeleteRange(ctx context.Context, from, to BuyOrderBatchSelectorIndexKey) error
	// contains filtered or unexported methods
}

func NewBuyOrderBatchSelectorTable

func NewBuyOrderBatchSelectorTable(db ormtable.Schema) (BuyOrderBatchSelectorTable, error)

type BuyOrderClassSelector

type BuyOrderClassSelector struct {

	// buy_order_id is the buy order ID.
	BuyOrderId uint64 `protobuf:"varint,1,opt,name=buy_order_id,json=buyOrderId,proto3" json:"buy_order_id,omitempty"`
	// class_id is the class ID.
	ClassId uint64 `protobuf:"varint,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// project_location is the project location in the selector's criteria.
	ProjectLocation string `protobuf:"bytes,3,opt,name=project_location,json=projectLocation,proto3" json:"project_location,omitempty"`
	// min_start_date is the minimum start date in the selector's criteria.
	MinStartDate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=min_start_date,json=minStartDate,proto3" json:"min_start_date,omitempty"`
	// max_end_date is the maximum end date in the selector's criteria.
	MaxEndDate *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=max_end_date,json=maxEndDate,proto3" json:"max_end_date,omitempty"`
	// contains filtered or unexported fields
}

BuyOrderClassSelector indexes a buy order with class selector.

func (*BuyOrderClassSelector) Descriptor deprecated

func (*BuyOrderClassSelector) Descriptor() ([]byte, []int)

Deprecated: Use BuyOrderClassSelector.ProtoReflect.Descriptor instead.

func (*BuyOrderClassSelector) GetBuyOrderId

func (x *BuyOrderClassSelector) GetBuyOrderId() uint64

func (*BuyOrderClassSelector) GetClassId

func (x *BuyOrderClassSelector) GetClassId() uint64

func (*BuyOrderClassSelector) GetMaxEndDate

func (x *BuyOrderClassSelector) GetMaxEndDate() *timestamppb.Timestamp

func (*BuyOrderClassSelector) GetMinStartDate

func (x *BuyOrderClassSelector) GetMinStartDate() *timestamppb.Timestamp

func (*BuyOrderClassSelector) GetProjectLocation

func (x *BuyOrderClassSelector) GetProjectLocation() string

func (*BuyOrderClassSelector) ProtoMessage

func (*BuyOrderClassSelector) ProtoMessage()

func (*BuyOrderClassSelector) ProtoReflect

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

func (*BuyOrderClassSelector) Reset

func (x *BuyOrderClassSelector) Reset()

func (*BuyOrderClassSelector) String

func (x *BuyOrderClassSelector) String() string

type BuyOrderClassSelectorBuyOrderIdClassIdIndexKey

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

func (BuyOrderClassSelectorBuyOrderIdClassIdIndexKey) WithBuyOrderId

func (BuyOrderClassSelectorBuyOrderIdClassIdIndexKey) WithBuyOrderIdClassId

type BuyOrderClassSelectorClassIdIndexKey

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

func (BuyOrderClassSelectorClassIdIndexKey) WithClassId

type BuyOrderClassSelectorIndexKey

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

type BuyOrderClassSelectorIterator

type BuyOrderClassSelectorIterator struct {
	ormtable.Iterator
}

func (BuyOrderClassSelectorIterator) Value

type BuyOrderClassSelectorPrimaryKey

type BuyOrderClassSelectorPrimaryKey = BuyOrderClassSelectorBuyOrderIdClassIdIndexKey

primary key starting index..

type BuyOrderClassSelectorTable

type BuyOrderClassSelectorTable interface {
	Insert(ctx context.Context, buyOrderClassSelector *BuyOrderClassSelector) error
	Update(ctx context.Context, buyOrderClassSelector *BuyOrderClassSelector) error
	Save(ctx context.Context, buyOrderClassSelector *BuyOrderClassSelector) error
	Delete(ctx context.Context, buyOrderClassSelector *BuyOrderClassSelector) error
	Has(ctx context.Context, buy_order_id uint64, class_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, buy_order_id uint64, class_id uint64) (*BuyOrderClassSelector, error)
	List(ctx context.Context, prefixKey BuyOrderClassSelectorIndexKey, opts ...ormlist.Option) (BuyOrderClassSelectorIterator, error)
	ListRange(ctx context.Context, from, to BuyOrderClassSelectorIndexKey, opts ...ormlist.Option) (BuyOrderClassSelectorIterator, error)
	DeleteBy(ctx context.Context, prefixKey BuyOrderClassSelectorIndexKey) error
	DeleteRange(ctx context.Context, from, to BuyOrderClassSelectorIndexKey) error
	// contains filtered or unexported methods
}

func NewBuyOrderClassSelectorTable

func NewBuyOrderClassSelectorTable(db ormtable.Schema) (BuyOrderClassSelectorTable, error)

type BuyOrderProjectSelector

type BuyOrderProjectSelector struct {

	// buy_order_id is the buy order ID.
	BuyOrderId uint64 `protobuf:"varint,1,opt,name=buy_order_id,json=buyOrderId,proto3" json:"buy_order_id,omitempty"`
	// project_id is the project ID.
	ProjectId uint64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// min_start_date is the minimum start date in the selector's criteria.
	MinStartDate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=min_start_date,json=minStartDate,proto3" json:"min_start_date,omitempty"`
	// max_end_date is the maximum end date in the selector's criteria.
	MaxEndDate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=max_end_date,json=maxEndDate,proto3" json:"max_end_date,omitempty"`
	// contains filtered or unexported fields
}

BuyOrderProjectSelector indexes a buy order with project selector.

func (*BuyOrderProjectSelector) Descriptor deprecated

func (*BuyOrderProjectSelector) Descriptor() ([]byte, []int)

Deprecated: Use BuyOrderProjectSelector.ProtoReflect.Descriptor instead.

func (*BuyOrderProjectSelector) GetBuyOrderId

func (x *BuyOrderProjectSelector) GetBuyOrderId() uint64

func (*BuyOrderProjectSelector) GetMaxEndDate

func (x *BuyOrderProjectSelector) GetMaxEndDate() *timestamppb.Timestamp

func (*BuyOrderProjectSelector) GetMinStartDate

func (x *BuyOrderProjectSelector) GetMinStartDate() *timestamppb.Timestamp

func (*BuyOrderProjectSelector) GetProjectId

func (x *BuyOrderProjectSelector) GetProjectId() uint64

func (*BuyOrderProjectSelector) ProtoMessage

func (*BuyOrderProjectSelector) ProtoMessage()

func (*BuyOrderProjectSelector) ProtoReflect

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

func (*BuyOrderProjectSelector) Reset

func (x *BuyOrderProjectSelector) Reset()

func (*BuyOrderProjectSelector) String

func (x *BuyOrderProjectSelector) String() string

type BuyOrderProjectSelectorBuyOrderIdProjectIdIndexKey

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

func (BuyOrderProjectSelectorBuyOrderIdProjectIdIndexKey) WithBuyOrderId

func (BuyOrderProjectSelectorBuyOrderIdProjectIdIndexKey) WithBuyOrderIdProjectId

type BuyOrderProjectSelectorIndexKey

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

type BuyOrderProjectSelectorIterator

type BuyOrderProjectSelectorIterator struct {
	ormtable.Iterator
}

func (BuyOrderProjectSelectorIterator) Value

type BuyOrderProjectSelectorPrimaryKey

type BuyOrderProjectSelectorPrimaryKey = BuyOrderProjectSelectorBuyOrderIdProjectIdIndexKey

primary key starting index..

type BuyOrderProjectSelectorProjectIdIndexKey

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

func (BuyOrderProjectSelectorProjectIdIndexKey) WithProjectId

type BuyOrderProjectSelectorTable

type BuyOrderProjectSelectorTable interface {
	Insert(ctx context.Context, buyOrderProjectSelector *BuyOrderProjectSelector) error
	Update(ctx context.Context, buyOrderProjectSelector *BuyOrderProjectSelector) error
	Save(ctx context.Context, buyOrderProjectSelector *BuyOrderProjectSelector) error
	Delete(ctx context.Context, buyOrderProjectSelector *BuyOrderProjectSelector) error
	Has(ctx context.Context, buy_order_id uint64, project_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, buy_order_id uint64, project_id uint64) (*BuyOrderProjectSelector, error)
	List(ctx context.Context, prefixKey BuyOrderProjectSelectorIndexKey, opts ...ormlist.Option) (BuyOrderProjectSelectorIterator, error)
	ListRange(ctx context.Context, from, to BuyOrderProjectSelectorIndexKey, opts ...ormlist.Option) (BuyOrderProjectSelectorIterator, error)
	DeleteBy(ctx context.Context, prefixKey BuyOrderProjectSelectorIndexKey) error
	DeleteRange(ctx context.Context, from, to BuyOrderProjectSelectorIndexKey) error
	// contains filtered or unexported methods
}

func NewBuyOrderProjectSelectorTable

func NewBuyOrderProjectSelectorTable(db ormtable.Schema) (BuyOrderProjectSelectorTable, error)

type BuyOrderSellOrderMatch

type BuyOrderSellOrderMatch struct {

	// market_id defines the market within which this match exists.
	MarketId uint64 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// buy_order_id is the buy order ID.
	BuyOrderId uint64 `protobuf:"varint,2,opt,name=buy_order_id,json=buyOrderId,proto3" json:"buy_order_id,omitempty"`
	// sell_order_id is the sell order ID.
	SellOrderId uint64 `protobuf:"varint,3,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
	// bid_price_complement is the the complement (^ operator) of the bid price
	// encoded as a uint32 (which should have sufficient precision) - effectively
	// ~price * 10^exponent (usually 10^6). The complement is used so that bids
	// can be sorted high to low.
	BidPriceComplement uint32 `protobuf:"fixed32,4,opt,name=bid_price_complement,json=bidPriceComplement,proto3" json:"bid_price_complement,omitempty"`
	// ask_price is the ask price encoded to a uint32. Ask prices are sorted low
	// to high.
	AskPrice uint32 `protobuf:"fixed32,5,opt,name=ask_price,json=askPrice,proto3" json:"ask_price,omitempty"`
	// contains filtered or unexported fields
}

BuyOrderSellOrderMatch defines the data the FIFO/price-time-priority matching algorithm used to actually match buy and sell orders.

func (*BuyOrderSellOrderMatch) Descriptor deprecated

func (*BuyOrderSellOrderMatch) Descriptor() ([]byte, []int)

Deprecated: Use BuyOrderSellOrderMatch.ProtoReflect.Descriptor instead.

func (*BuyOrderSellOrderMatch) GetAskPrice

func (x *BuyOrderSellOrderMatch) GetAskPrice() uint32

func (*BuyOrderSellOrderMatch) GetBidPriceComplement

func (x *BuyOrderSellOrderMatch) GetBidPriceComplement() uint32

func (*BuyOrderSellOrderMatch) GetBuyOrderId

func (x *BuyOrderSellOrderMatch) GetBuyOrderId() uint64

func (*BuyOrderSellOrderMatch) GetMarketId

func (x *BuyOrderSellOrderMatch) GetMarketId() uint64

func (*BuyOrderSellOrderMatch) GetSellOrderId

func (x *BuyOrderSellOrderMatch) GetSellOrderId() uint64

func (*BuyOrderSellOrderMatch) ProtoMessage

func (*BuyOrderSellOrderMatch) ProtoMessage()

func (*BuyOrderSellOrderMatch) ProtoReflect

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

func (*BuyOrderSellOrderMatch) Reset

func (x *BuyOrderSellOrderMatch) Reset()

func (*BuyOrderSellOrderMatch) String

func (x *BuyOrderSellOrderMatch) String() string

type BuyOrderSellOrderMatchBuyOrderIdSellOrderIdIndexKey

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

func (BuyOrderSellOrderMatchBuyOrderIdSellOrderIdIndexKey) WithBuyOrderId

func (BuyOrderSellOrderMatchBuyOrderIdSellOrderIdIndexKey) WithBuyOrderIdSellOrderId

type BuyOrderSellOrderMatchIndexKey

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

type BuyOrderSellOrderMatchIterator

type BuyOrderSellOrderMatchIterator struct {
	ormtable.Iterator
}

func (BuyOrderSellOrderMatchIterator) Value

type BuyOrderSellOrderMatchMarketIdBidPriceComplementBuyOrderIdAskPriceSellOrderIdIndexKey

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

func (BuyOrderSellOrderMatchMarketIdBidPriceComplementBuyOrderIdAskPriceSellOrderIdIndexKey) WithMarketId

func (BuyOrderSellOrderMatchMarketIdBidPriceComplementBuyOrderIdAskPriceSellOrderIdIndexKey) WithMarketIdBidPriceComplement

func (BuyOrderSellOrderMatchMarketIdBidPriceComplementBuyOrderIdAskPriceSellOrderIdIndexKey) WithMarketIdBidPriceComplementBuyOrderId

func (BuyOrderSellOrderMatchMarketIdBidPriceComplementBuyOrderIdAskPriceSellOrderIdIndexKey) WithMarketIdBidPriceComplementBuyOrderIdAskPrice

func (BuyOrderSellOrderMatchMarketIdBidPriceComplementBuyOrderIdAskPriceSellOrderIdIndexKey) WithMarketIdBidPriceComplementBuyOrderIdAskPriceSellOrderId

func (this BuyOrderSellOrderMatchMarketIdBidPriceComplementBuyOrderIdAskPriceSellOrderIdIndexKey) WithMarketIdBidPriceComplementBuyOrderIdAskPriceSellOrderId(market_id uint64, bid_price_complement uint32, buy_order_id uint64, ask_price uint32, sell_order_id uint64) BuyOrderSellOrderMatchMarketIdBidPriceComplementBuyOrderIdAskPriceSellOrderIdIndexKey

type BuyOrderSellOrderMatchPrimaryKey

type BuyOrderSellOrderMatchPrimaryKey = BuyOrderSellOrderMatchBuyOrderIdSellOrderIdIndexKey

primary key starting index..

type BuyOrderSellOrderMatchSellOrderIdIndexKey

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

func (BuyOrderSellOrderMatchSellOrderIdIndexKey) WithSellOrderId

type BuyOrderSellOrderMatchTable

type BuyOrderSellOrderMatchTable interface {
	Insert(ctx context.Context, buyOrderSellOrderMatch *BuyOrderSellOrderMatch) error
	Update(ctx context.Context, buyOrderSellOrderMatch *BuyOrderSellOrderMatch) error
	Save(ctx context.Context, buyOrderSellOrderMatch *BuyOrderSellOrderMatch) error
	Delete(ctx context.Context, buyOrderSellOrderMatch *BuyOrderSellOrderMatch) error
	Has(ctx context.Context, buy_order_id uint64, sell_order_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, buy_order_id uint64, sell_order_id uint64) (*BuyOrderSellOrderMatch, error)
	List(ctx context.Context, prefixKey BuyOrderSellOrderMatchIndexKey, opts ...ormlist.Option) (BuyOrderSellOrderMatchIterator, error)
	ListRange(ctx context.Context, from, to BuyOrderSellOrderMatchIndexKey, opts ...ormlist.Option) (BuyOrderSellOrderMatchIterator, error)
	DeleteBy(ctx context.Context, prefixKey BuyOrderSellOrderMatchIndexKey) error
	DeleteRange(ctx context.Context, from, to BuyOrderSellOrderMatchIndexKey) error
	// contains filtered or unexported methods
}

func NewBuyOrderSellOrderMatchTable

func NewBuyOrderSellOrderMatchTable(db ormtable.Schema) (BuyOrderSellOrderMatchTable, error)

type MemoryStore

type MemoryStore interface {
	BuyOrderSellOrderMatchTable() BuyOrderSellOrderMatchTable
	BuyOrderClassSelectorTable() BuyOrderClassSelectorTable
	BuyOrderProjectSelectorTable() BuyOrderProjectSelectorTable
	BuyOrderBatchSelectorTable() BuyOrderBatchSelectorTable
	// contains filtered or unexported methods
}

func NewMemoryStore

func NewMemoryStore(db ormtable.Schema) (MemoryStore, error)

Jump to

Keyboard shortcuts

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