order

package
v0.0.0-...-f2cd14d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2016 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Overview

Core order APIs

Index

Constants

This section is empty.

Variables

View Source
var (
	MessageBus *messagebus.Conn
)

Functions

This section is empty.

Types

type Order

type Order struct {
	*proto.Order
}

Order struct extends protobuf Order /proto/order/order.proto

func (*Order) CanCancel

func (m *Order) CanCancel() bool

Status that Order can be cancelled

func (*Order) CanReplace

func (m *Order) CanReplace() bool

Status that Order can be replaced

func (*Order) IsCompleted

func (m *Order) IsCompleted() bool

func (*Order) String

func (m *Order) String() string

Pretty print order, usually for logging

func (*Order) Validate

func (m *Order) Validate() error

Basic validation of Order, usually unmarshaled off message bus

Jump to

Keyboard shortcuts

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