Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Portfolios = make(map[string]*Portfolio)
View Source
var PortfoliosLock = lock.NewLock("portfolios")
Functions ¶
func DeletePortfolio ¶
func DeletePortfolio(uuid string)
Types ¶
type Portfolio ¶
type Portfolio struct { objects.Portfolio //keeps track of how much $$$ they own, used for some slight optomization on calc networth // stock_uuid -> ledgerObject UpdateChannel *duplicator.ChannelDuplicator `json:"-"` UpdateInput *duplicator.ChannelDuplicator `json:"-"` Lock *lock.Lock `json:"-"` // contains filtered or unexported fields }
* Portfolios are the $$$ part of a user
func GetAllPortfolios ¶
func GetAllPortfolios() []*Portfolio
func GetPortfolio ¶
func MakePortfolio ¶
func NewPortfolio ¶
func (*Portfolio) RegisterUpdate ¶
func (port *Portfolio) RegisterUpdate(newInput chan interface{})
Click to show internal directories.
Click to hide internal directories.