Documentation ¶
Index ¶
- Constants
- func Connect()
- func Delete(user models.User) error
- func FindAll() ([]models.User, error)
- func FindByEmailId(email string, username string) (models.User, error)
- func FindById(id string) (models.User, error)
- func Insert(user models.User) error
- func PopulateIndex()
- func Update(user models.User) error
Constants ¶
View Source
const (
COLLECTION = "users"
)
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect()
Parse the configuration file 'config.toml', and establish a connection to DB
func FindByEmailId ¶
Find a user by its email id
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.