gotrade: github.com/cyanly/gotrade/database/memstore Index | Files

package memstore

import "github.com/cyanly/gotrade/database/memstore"

Index

Package Files

copy.go orderstore.go

Constants

const StoreType = "memstore"

func Copy Uses

func Copy(toValue interface{}, fromValue interface{}) (err error)

type OrderStore Uses

type OrderStore struct {
    // contains filtered or unexported fields
}

func (*OrderStore) Close Uses

func (store *OrderStore) Close()

func (*OrderStore) ExecutionCreate Uses

func (store *OrderStore) ExecutionCreate(er *proto.Execution) error

Create an Execution from entity

func (*OrderStore) OrderCreate Uses

func (store *OrderStore) OrderCreate(order *proto.Order) error

Save order as new entry

func (*OrderStore) OrderGet Uses

func (store *OrderStore) OrderGet(orderId int32) (*proto.Order, error)

Returns an order for OrderId

func (*OrderStore) OrderGetByOrderKey Uses

func (store *OrderStore) OrderGetByOrderKey(orderKey int32) (*proto.Order, error)

Returns an order for OrderId

Package memstore imports 5 packages (graph). Updated 2016-07-20. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).