models

package
v0.0.0-...-6271000 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DATABASE_NAME = "data.db"
)

Variables

This section is empty.

Functions

func NewProject

func NewProject(user, name, desc string)

Types

type Project

type Project struct {
	Name string
	Desc string
	Path string
	Meta string
}

func Projects

func Projects() []Project

type User

type User struct {
	Email    string
	Username string
	Password []byte
}

func GetUserByEmail

func GetUserByEmail(email string) (user *User)

func (*User) EqPassword

func (user *User) EqPassword(password string) bool

func (*User) HashPassword

func (user *User) HashPassword(password string)

Jump to

Keyboard shortcuts

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