cache

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrderPrefix = "om_order_"
	OrderTtl    = 120 // todo modify it to 86400
)
View Source
const (
	UserPendingOrderKeyPrefix = "om_pending_ordertx_"
)

Variables

This section is empty.

Functions

func BaseInfo

func BaseInfo(orderhash common.Hash) (*types.OrderState, error)

func DelPendingOrder

func DelPendingOrder(owner common.Address, orderhash common.Hash) error

func ExistPendingOrder

func ExistPendingOrder(owner common.Address, orderhash common.Hash) bool

func GetPendingOrders

func GetPendingOrders(owner common.Address) []common.Hash

func Initialize

func Initialize(db *dao.RdsService)

func Invalid

func Invalid() bool

func SetPendingOrder

func SetPendingOrder(owner common.Address, orderhash common.Hash) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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