keys

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 mv1beta.BidFilters) ([]byte, error)

func BidReverseKey

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

func BidReversePrefixFromFilter

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

func BidStateReverseKey

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

func BidStateToPrefix

func BidStateToPrefix(state mv1beta.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 mv1beta.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 mv1beta.OrderFilters) ([]byte, error)

func OrderStateToPrefix

func OrderStateToPrefix(state mv1beta.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