Documentation
¶
Index ¶
- type Mongodb
- func (db Mongodb) DeleteAll(user expiraBot.User) bool
- func (db Mongodb) DeleteBook(book expiraBot.Books) bool
- func (db Mongodb) GetBooks(user expiraBot.User) []expiraBot.Books
- func (db Mongodb) GetUserInfoById(userId int64) expiraBot.User
- func (db Mongodb) InsertBook(book expiraBot.Books) bool
- func (db Mongodb) InsertUser(user expiraBot.User) bool
- func (db *Mongodb) Start(url string) func()
- func (db Mongodb) Update(books []expiraBot.Books) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongodb ¶
type Mongodb struct {
// contains filtered or unexported fields
}
func (Mongodb) DeleteAll ¶
Delete all books from a user Return true if the operations was successful, false otherwise
func (Mongodb) DeleteBook ¶
Delete a specific book in the mongo database Return true if the operations was successful, false otherwise
func (Mongodb) GetBooks ¶
Delete all books from a user Return true if the operations was successful, false otherwise
func (Mongodb) GetUserInfoById ¶
Delete a specific book in the mongo database Return true if the operations was successful, false otherwise
func (Mongodb) InsertBook ¶
Insert a new book in the mongo database Return true if the operations was successful, false otherwise
func (Mongodb) InsertUser ¶
Insert a new user in the mongo database Return true if the operations was successful, false otherwise
Click to show internal directories.
Click to hide internal directories.