data

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const OrderPrefix = "user_order_"

OrderPrefix is the prefix added to user orders when stored in a database.

Variables

This section is empty.

Functions

func GetOrder

func GetOrder(name string, db cache.Getter) (*dawg.Order, error)

GetOrder will get an order from a database.

func PrintOrders

func PrintOrders(db cache.MapDB, w io.Writer, verbose bool) error

PrintOrders will print all the names of the saved user orders

func SaveOrder

func SaveOrder(o *dawg.Order, w io.Writer, db cache.Putter) error

SaveOrder will save an order to a database.

Also sends the order to the validation endpoint after saving it to the cache.Putter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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