Documentation ¶
Index ¶
- type DataStore
- func (store *DataStore) AddPosition(userId uint64, symbol string, qty decimal.Decimal, basis decimal.Decimal, ...) error
- func (store *DataStore) AddUser(email, password string) error
- func (store *DataStore) GetPositionsBySymbol(userId uint64, symbol string) ([]datalayer.Position, error)
- func (store *DataStore) GetPositionsByUser(userId uint64) ([]datalayer.Position, error)
- func (store *DataStore) GetUserByEmail(email string) (*datalayer.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
type DataStore struct { HashCost int // contains filtered or unexported fields }
func (*DataStore) AddPosition ¶
func (*DataStore) GetPositionsBySymbol ¶
func (*DataStore) GetPositionsByUser ¶
Click to show internal directories.
Click to hide internal directories.