orderlimit

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveUnsentOrdersWithInvalidLimit

func RemoveUnsentOrdersWithInvalidLimit(ctx context.Context, conn *sqlite3.Conn) (numDeleted uint64, _ error)

RemoveUnsentOrdersWithInvalidLimit removes all the invalid unsent orders which have an invalid order limit and it returns the number of deleted orders.

An invalid order limit is one that cannot be deserialized.

It panics if ctx or conn is nil.

TODO: report the number of deleted orders by validation error type.

TODO: have a force flag which cause to always delete any order which validation has failed despite that it could be caused by the unmarshaller mechanism.

Types

This section is empty.

Jump to

Keyboard shortcuts

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