Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterOrderStore ¶
func RegisterOrderStore(name string, register OrderStoreRegistration)
Types ¶
type OrderStore ¶
type OrderStore interface { // Returns an order row for OrderId, excludes Execution/Allocations etc OrderGet(int32) (*proto.Order, error) // Returns an order row for OrderKey, excludes Execution/Allocations etc OrderGetByOrderKey(int32) (*proto.Order, error) // Save order as new entry OrderCreate(*proto.Order) error // Create an Execution from entity ExecutionCreate(*proto.Execution) error // Close the store and clean up. (Flush to disk, cleanly sever connections, etc) Close() }
Defines the OrderStore interface. Every backing store must implement at least this interface.
func NewOrderStore ¶
func NewOrderStore(name, dbpath string, opts Options) (OrderStore, error)
type OrderStoreRegistration ¶
type OrderStoreRegistration struct {
DialFunc func(string, Options) (OrderStore, error)
}
Click to show internal directories.
Click to hide internal directories.