Documentation ¶
Index ¶
- func New(connectionURI string) *mongo.Database
- type Recommendations
- type Watchlists
- func (w *Watchlists) Create(watchlist model.WatchlistRequest) (primitive.ObjectID, error)
- func (w *Watchlists) Delete(id primitive.ObjectID) (int64, error)
- func (w *Watchlists) Get(id primitive.ObjectID) (model.Watchlist, error)
- func (w *Watchlists) GetAll(userID string) ([]model.Watchlist, error)
- func (w *Watchlists) List() ([]model.Watchlist, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Recommendations ¶
type Recommendations struct {
// contains filtered or unexported fields
}
func NewRecommendations ¶
func NewRecommendations(db *mongo.Database) *Recommendations
func (*Recommendations) Create ¶
func (r *Recommendations) Create(id primitive.ObjectID, stocks []string) error
type Watchlists ¶
type Watchlists struct {
// contains filtered or unexported fields
}
func NewWatchlists ¶
func NewWatchlists(db *mongo.Database) *Watchlists
func (*Watchlists) Create ¶
func (w *Watchlists) Create(watchlist model.WatchlistRequest) (primitive.ObjectID, error)
Click to show internal directories.
Click to hide internal directories.