Documentation ¶
Index ¶
- Variables
- type Database
- func (db *Database) GetPost(id string) (*models.Post, error)
- func (db *Database) GetPosts(query []bson.M) ([]*models.Post, error)
- func (db *Database) GetUser(id string) (*models.User, error)
- func (db *Database) GetUsers(query []bson.M) ([]*models.User, error)
- func (db *Database) SavePost(post *models.Post) (*models.Post, error)
- func (db *Database) SaveUser(user *models.User) (*models.User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotObjectIdHex = errors.New("Invalid ID")
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.