db

package
Version: v0.0.0-...-ba49760 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Url = "root:root@tcp(127.0.0.1:3306)/user"
)

Functions

func Create

func Create(user *user.User, salt string, password string) error

func CreateSession

func CreateSession(sess *user.Session) error

func Delete

func Delete(id string) error

func DeleteSession

func DeleteSession(id string) error

func Init

func Init()

func Read

func Read(id string) (*user.User, error)

func ReadSession

func ReadSession(id string) (*user.Session, error)

func SaltAndPassword

func SaltAndPassword(username, email string) (string, string, error)
func Search(username, email string, limit, offset int64) ([]*user.User, error)

func Update

func Update(user *user.User) error

func UpdatePassword

func UpdatePassword(id string, salt string, password string) error

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL