v1beta4

package
v0.38.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrderStateOpenPrefixID              = byte(0x01)
	OrderStateActivePrefixID            = byte(0x02)
	OrderStateClosedPrefixID            = byte(0x03)
	BidStateOpenPrefixID                = byte(0x01)
	BidStateActivePrefixID              = byte(0x02)
	BidStateLostPrefixID                = byte(0x03)
	BidStateClosedPrefixID              = byte(0x04)
	LeaseStateActivePrefixID            = byte(0x01)
	LeaseStateInsufficientFundsPrefixID = byte(0x02)
	LeaseStateClosedPrefixID            = byte(0x03)
)

Variables

View Source
var (
	OrderPrefix                       = []byte{0x11, 0x00}
	OrderStateOpenPrefix              = []byte{OrderStateOpenPrefixID}
	OrderStateActivePrefix            = []byte{OrderStateActivePrefixID}
	OrderStateClosedPrefix            = []byte{OrderStateClosedPrefixID}
	BidPrefix                         = []byte{0x12, 0x00}
	BidPrefixReverse                  = []byte{0x12, 0x01}
	BidStateOpenPrefix                = []byte{BidStateOpenPrefixID}
	BidStateActivePrefix              = []byte{BidStateActivePrefixID}
	BidStateLostPrefix                = []byte{BidStateLostPrefixID}
	BidStateClosedPrefix              = []byte{BidStateClosedPrefixID}
	LeasePrefix                       = []byte{0x13, 0x00}
	LeasePrefixReverse                = []byte{0x13, 0x01}
	LeaseStateActivePrefix            = []byte{LeaseStateActivePrefixID}
	LeaseStateInsufficientFundsPrefix = []byte{LeaseStateInsufficientFundsPrefixID}
	LeaseStateClosedPrefix            = []byte{LeaseStateClosedPrefixID}
)

Functions

func BidKey

func BidKey(statePrefix []byte, id types.BidID) ([]byte, error)

func BidKeyLegacy

func BidKeyLegacy(id types.BidID) []byte

func BidPrefixFromFilter

func BidPrefixFromFilter(f types.BidFilters) ([]byte, error)

func BidReverseKey

func BidReverseKey(statePrefix []byte, id types.BidID) ([]byte, error)

func BidReversePrefixFromFilter

func BidReversePrefixFromFilter(f types.BidFilters) ([]byte, error)

func BidStateReverseKey

func BidStateReverseKey(state types.Bid_State, id types.BidID) ([]byte, error)

func BidStateToPrefix

func BidStateToPrefix(state types.Bid_State) []byte

func BidsForOrderPrefix

func BidsForOrderPrefix(statePrefix []byte, id types.OrderID) []byte

func BidsForOrderPrefixLegacy

func BidsForOrderPrefixLegacy(id types.OrderID) []byte

func LeaseKey

func LeaseKey(statePrefix []byte, id types.LeaseID) ([]byte, error)

func LeaseKeyLegacy

func LeaseKeyLegacy(id types.LeaseID) []byte

func LeasePrefixFromFilter

func LeasePrefixFromFilter(f types.LeaseFilters) ([]byte, error)

func LeaseReverseKey

func LeaseReverseKey(statePrefix []byte, id types.LeaseID) ([]byte, error)

func LeaseReversePrefixFromFilter

func LeaseReversePrefixFromFilter(f types.LeaseFilters) ([]byte, error)

func LeaseStateReverseKey

func LeaseStateReverseKey(state types.Lease_State, id types.LeaseID) ([]byte, error)

func LeaseStateToPrefix

func LeaseStateToPrefix(state types.Lease_State) []byte

func MustBidKey

func MustBidKey(statePrefix []byte, id types.BidID) []byte

func MustBidReverseKey

func MustBidReverseKey(statePrefix []byte, id types.BidID) []byte

func MustBidStateRevereKey

func MustBidStateRevereKey(state types.Bid_State, id types.BidID) []byte

func MustLeaseKey

func MustLeaseKey(statePrefix []byte, id types.LeaseID) []byte

func MustLeaseReverseKey

func MustLeaseReverseKey(statePrefix []byte, id types.LeaseID) []byte

func MustLeaseStateReverseKey

func MustLeaseStateReverseKey(state types.Lease_State, id types.LeaseID) []byte

func MustOrderKey

func MustOrderKey(statePrefix []byte, id types.OrderID) []byte

func OrderKey

func OrderKey(statePrefix []byte, id types.OrderID) ([]byte, error)

func OrderKeyLegacy

func OrderKeyLegacy(id types.OrderID) []byte

func OrderPrefixFromFilter

func OrderPrefixFromFilter(f types.OrderFilters) ([]byte, error)

func OrderStateToPrefix

func OrderStateToPrefix(state types.Order_State) []byte

func OrdersForGroupPrefix

func OrdersForGroupPrefix(statePrefix []byte, id dtypes.GroupID) []byte

func OrdersForGroupPrefixLegacy

func OrdersForGroupPrefixLegacy(id dtypes.GroupID) []byte

func SecondaryKeysForLeaseLegacy

func SecondaryKeysForLeaseLegacy(id types.LeaseID) [][]byte

func SecondaryLeaseKeyByProviderLegacy

func SecondaryLeaseKeyByProviderLegacy(id types.LeaseID) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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