Documentation ¶
Index ¶
Constants ¶
View Source
const FAKE_CURRENCY_CODE = "USD"
View Source
const FAKE_ITEM_PRICE = 3.12
View Source
const FATEL_PRICE_ERROR = "Fatal price error "
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrentPrice ¶
type IMongoDb ¶
type IMongoDb interface { Connect() error GetPriceInfo(id string, currentPrice chan CurrentPrice) PutPriceInfo(price CurrentPrice) error }
type Mock ¶
type Mock struct{}
func (Mock) GetPriceInfo ¶
func (Mock) GetPriceInfo(id string, currentPrice chan CurrentPrice)
func (Mock) PutPriceInfo ¶
func (Mock) PutPriceInfo(price CurrentPrice) error
type Request ¶
type Request struct{}
func (Request) GetPriceInfo ¶
func (Request) GetPriceInfo(id string, currentPrice chan CurrentPrice)
Get price information for given item from database
func (Request) PutPriceInfo ¶
func (Request) PutPriceInfo(price CurrentPrice) error
Update or insert price information for given item
Click to show internal directories.
Click to hide internal directories.