Versions in this module Expand all Collapse all v1 v1.0.0 Jan 13, 2016 Changes in this version + func AuthenticateUser(username string, password string) bool + func InitDBConnection() (err error) + type DBConf struct + Host string + Name string + Pass string + Port string + User string + type Todo struct + Body string + CreatedAt time.Time + Id int + Title string + UpdatedAt time.Time + UserId int + func GetTodo(id int) (todo Todo, err error) + func GetTodoList() (todos []Todo, err error) + func GetTodoListFilteredByUserId(userId int) (todos []Todo, err error) + func (todo *Todo) Create() (err error) + func (todo *Todo) Delete() (err error) + func (todo *Todo) Update() (err error) + type User struct + CreatedAt time.Time + Email string + Id int + Name string + UpdatedAt time.Time + func GetUser(id int) (user User, err error) + func GetUserList() (users []User, err error) + func (user *User) Create(password string) (err error) + func (user *User) Delete() (err error) + func (user *User) Update() (err error)