Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
ID uint `orm:"column(id)" json:"id"`
TrustedIP string `orm:"column(trusted_id)"`
TrustedPort uint
RemoteIP string `orm:"column(remote_ip)"`
RemotePort uint
StartUp time.Time
ShutDown *time.Time
Received float64
Send float64
UpdatedAt time.Time `orm:"auto_now" json:"updatedAt"`
CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`
User *User `orm:"rel(fk)"`
}
Log log
type User ¶
type User struct {
ID uint `orm:"column(id)" json:"id"`
FullName string
Email string
Details string
Password string
Online bool
Enable bool
StartUp time.Time
ShutDown time.Time
UpdatedAt time.Time `orm:"auto_now" json:"updatedAt"`
CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`
}
User user
func (*User) ChkPassword ¶
ChkPassword check password
func (*User) SetPassword ¶
SetPassword set password (md5 with salt)
Click to show internal directories.
Click to hide internal directories.