Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderFilter ¶
func WithPair ¶
func WithPair(pair string) OrderFilter
func WithStatus ¶
func WithStatus(status model.OrderStatusType) OrderFilter
func WithStatusIn ¶
func WithStatusIn(status ...model.OrderStatusType) OrderFilter
func WithUpdateAtBeforeOrEqual ¶
func WithUpdateAtBeforeOrEqual(time time.Time) OrderFilter
type SQL ¶
type SQL struct {
// contains filtered or unexported fields
}
func (*SQL) CreateOrder ¶
CreateOrder creates a new order in a SQL database
type Storage ¶
type Storage interface { CreateOrder(order *model.Order) error UpdateOrder(order *model.Order) error Orders(filters ...OrderFilter) ([]*model.Order, error) }
func FromMemory ¶
Click to show internal directories.
Click to hide internal directories.