Documentation ¶
Index ¶
- func GetFileStructure(username string) (*types.FileStructure, error)
- type User
- func (u *User) AddUserHome() error
- func (u *User) GetWithEmail(session *xorm.Session) (bool, error)
- func (u *User) GetWithUserID(session *xorm.Session) (bool, error)
- func (u *User) GetWithUsername(session *xorm.Session) (bool, error)
- func (u *User) Insert(session *xorm.Session) (int, error)
- func (u User) TableName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileStructure ¶
func GetFileStructure(username string) (*types.FileStructure, error)
GetFileStructure read file structure and return it
Types ¶
type User ¶
type User struct { ID int `xorm:"pk autoincr 'id'"` Username string `xorm:"notnull unique"` Email string `xorm:"notnull unique"` Password string `xorm:"notnull"` CreateTime *time.Time `xorm:"created"` }
User correspond user table in mysql
func (*User) AddUserHome ¶
AddUserHome create user home directory
func (*User) GetWithEmail ¶
GetWithEmail get user with given email
func (*User) GetWithUserID ¶
GetWithUserID get user with given id
func (*User) GetWithUsername ¶
GetWithUsername get user with given username
Click to show internal directories.
Click to hide internal directories.