package
Version:
v0.0.0-...-d20b489
Opens a new window with list of versions in this module.
Published: Jun 24, 2020
License: MPL-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type File struct {
gorm.Model
Name string `json:"name" gorm:"unique;"`
Path string `json:"path"`
ParentSession int64 `json:"parentSession"`
}
type GenericResponse struct {
Status string `json:"status"`
Message string `json:"message"`
}
Response models
type Session struct {
gorm.Model
Time int64 `json:"time" form:"time"`
Subject string `json:"subject" form:"subject"`
Title string `json:"title" form:"title"`
}
Database models
type SessionWithFiles struct {
Session
Files []File `json:"files"`
}
type Settings struct {
AllowRegistration bool `json:"allowRegistration"`
}
Misc. models
type User struct {
gorm.Model
Username string `json:"username" gorm:"unique;"`
PasswordHash []byte `json:"-"`
Salt string `json:"-"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.