service

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMail

func NewMail() *mail

Types

type Notifier

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

func NewNotifier

func NewNotifier(r recommendationProvider, w watchlistList, sc stockGetter, ss stockRecommendator, uc userprofileGetter, ec emailSender) *Notifier

func (*Notifier) NotifyChanges

func (n *Notifier) NotifyChanges()

type StockService

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

func NewStockService

func NewStockService(s sP500Client) *StockService

func (*StockService) Calculate

func (ss *StockService) Calculate(stockInfo *model.StockData, expectedRaise float64, expectedReturn float64) model.CalculatedStockInfo

Calculate returns the dynamically computed data from the latest information

func (*StockService) GetAllRecommendedStock

func (ss *StockService) GetAllRecommendedStock(stocks []model.StockData, numReqs int, userprofile *userprofileModel.Userprofile) []model.CalculatedStockInfo

GetAllRecommendedStock returns all the recommended stocks based on the requirements

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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