controller

package
v0.0.0-...-5a29284 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

func NewGeneral(dbClient *database.DBClient) *General

NewGeneral returns a new pointer to General, uninitialized

func (*General) AccessBroker

func (g *General) AccessBroker() *analyser.Broker

AccessBroker interface analyser.BrokerAccess

func (*General) AccessDB

func (g *General) AccessDB() *database.DBClient

AccessDB interface database.DBAccess

func (*General) AccessStockItem

func (g *General) AccessStockItem(stockid string) (structs.Stock, bool)

AccessStockItem interface watcher.StockAccess

func (*General) AccessStockItemByName

func (g *General) AccessStockItemByName(stockname string) (structs.Stock, bool)

AccessStockItemByName interface watcher.StockAccess

func (*General) AccessWatcher

func (g *General) AccessWatcher() *watcher.Watcher

AccessWatcher interface analyser.WatcherAccess

func (*General) Initialize

func (g *General) Initialize()

Initialize initializes General

func (*General) OnWebhook

func (g *General) OnWebhook(token int64, msg string)

OnWebhook interface push.WebhookHandler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL