db

package
v0.0.0-...-6287e07 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL