Documentation ¶
Index ¶
- type Log
- type Plugin
- func (p *Plugin) Atom(lang string) ([]*atom.Entry, error)
- func (p *Plugin) Console() []cli.Command
- func (p *Plugin) Init()
- func (p *Plugin) Mount(rt *gin.Engine)
- func (p *Plugin) Open(*inject.Graph) error
- func (p *Plugin) Sitemap(languages ...string) ([]stm.URL, error)
- func (p *Plugin) Workers() map[string]job.Handler
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct { ID uint `json:"id"` TrustedIP string `json:"trustedIp"` TrustedPort uint `json:"trustedPort"` RemoteIP string `json:"remoteIp"` RemotePort uint `json:"remotePort"` StartUp time.Time `json:"startUp"` ShutDown *time.Time `json:"shutDown"` Received float64 `json:"received"` Send float64 `json:"send"` UserID uint `json:"userId"` User User `json:"-"` }
Log log
type Plugin ¶
type Plugin struct { Db *gorm.DB `inject:""` Wrap *web.Wrap `inject:""` Jwt *auth.Jwt `inject:""` I18n *i18n.I18n `inject:""` Key []byte `inject:"jwt.key"` Method crypto.SigningMethod `inject:"jwt.method"` }
Plugin plugin
type User ¶
type User struct { web.Model FullName string `json:"fullName"` Email string `json:"email"` Details string `json:"details"` Password string `json:"password"` Online bool `json:"online"` Enable bool `json:"enable"` StartUp time.Time `json:"startUp"` ShutDown time.Time `json:"shutDown"` }
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.