Documentation ¶
Index ¶
- Variables
- func Create(user *user.User, salt string, password string) error
- func CreateSession(sess *user.Session) error
- func Delete(id string) error
- func DeleteSession(id string) error
- func Init()
- func Read(id string) (*user.User, error)
- func ReadSession(id string) (*user.Session, error)
- func SaltAndPassword(username, email string) (string, string, error)
- func Search(username, email string, limit, offset int64) ([]*user.User, error)
- func Update(user *user.User) error
- func UpdatePassword(id string, salt string, password string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Url = "root:root@tcp(127.0.0.1:3306)/user"
)
Functions ¶
func CreateSession ¶
func DeleteSession ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.