Documentation
¶
Index ¶
- func ConnectMongoDB(uri string) (*mongo.Client, context.Context, error)
- func FindByTransactionsByTicker(collection *mongo.Collection, data ApiTrades, ticker string) *[]Trade
- func InsertNewTransactionForTicker(collection *mongo.Collection, ticker string, trade Trade) error
- func MongoInit(tradeData []ApiTrades)
- func SaveData(collection *mongo.Collection, data ApiTrades) error
- func SetTradesData(input map[string][]Trade)
- func SetTradesData2(input []ApiTrades)
- func TradesHandler(w http.ResponseWriter, r *http.Request)
- func ValidTradesHandler(w http.ResponseWriter, r *http.Request)
- type ApiTrades
- type Trade
- type Trades
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindByTransactionsByTicker ¶
func FindByTransactionsByTicker(collection *mongo.Collection, data ApiTrades, ticker string) *[]Trade
func InsertNewTransactionForTicker ¶
func InsertNewTransactionForTicker(collection *mongo.Collection, ticker string, trade Trade) error
func SetTradesData ¶
func SetTradesData2 ¶
func SetTradesData2(input []ApiTrades)
func TradesHandler ¶
func TradesHandler(w http.ResponseWriter, r *http.Request)
func ValidTradesHandler ¶
func ValidTradesHandler(w http.ResponseWriter, r *http.Request)
Types ¶
Click to show internal directories.
Click to hide internal directories.