Documentation
¶
Index ¶
- type General
- func (g *General) AccessBroker() *analyser.Broker
- func (g *General) AccessDB() *database.DBClient
- func (g *General) AccessStockItem(stockid string) (structs.Stock, bool)
- func (g *General) AccessStockItemByName(stockname string) (structs.Stock, bool)
- func (g *General) AccessWatcher() *watcher.Watcher
- func (g *General) Initialize()
- func (g *General) OnWebhook(token int64, msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type General ¶
type General struct {
// contains filtered or unexported fields
}
General is the main controller of this whole project General은 다음와 같은 일들을 수행 1. 파싱된 유저의 메세지를 처리 2. 유저가 전략을 추가하면, 전략을 수정하거나, 삭제한다 3. 종목번호에 따른 가격, 종목 정보를 보여준다 4. 유저의 가입 처리를 한다
func NewGeneral ¶
NewGeneral returns a new pointer to General, uninitialized
func (*General) AccessBroker ¶
AccessBroker interface analyser.BrokerAccess
func (*General) AccessStockItem ¶
AccessStockItem interface watcher.StockAccess
func (*General) AccessStockItemByName ¶
AccessStockItemByName interface watcher.StockAccess
func (*General) AccessWatcher ¶
AccessWatcher interface analyser.WatcherAccess
Click to show internal directories.
Click to hide internal directories.