Documentation ¶
Index ¶
Constants ¶
View Source
const ( Organizer = `organizer` FileOrganizer = `fileOrganizer` Writer = `write` Reader = `reader` Commenter = `commenter` )
Variables ¶
View Source
var AllRoles = []Role{ Organizer, FileOrganizer, Writer, Reader, Commenter, }
Functions ¶
This section is empty.
Types ¶
type GoogleDriveConfig ¶
type GoogleDriveConfig struct { Id string `gorm:"column:id;primary_key"` Name sql.NullString `gorm:"column:name" sql:"null"` Password sql.NullString `gorm:"column:password" sql:"null"` FolderId string `gorm:"column:folder_id;index" sql:"null"` Encoder sql.NullString `gorm:"column:encoder" sql:"null"` Decoder sql.NullString `gorm:"column:decoder" sql:"null"` TrashFolderId sql.NullString `gorm:"column:trash_id" sql:"null"` CreatedAt time.Time UpdatedAt time.Time }
func (GoogleDriveConfig) TableName ¶
func (GoogleDriveConfig) TableName() string
type SyncFileInfo ¶
type SyncFileInfo struct { Id string `gorm:"column:id;primary_key"` CheckSum string `gorm:"column:checksum;index"` FileId sql.NullString `gorm:"column:file_id;index" sql:"null"` RemoteName sql.NullString `gorm:"column:remote_name" sql:"null"` FileSize int64 Uploaded bool ModTime time.Time CreatedAt time.Time UpdatedAt time.Time }
func (SyncFileInfo) TableName ¶
func (SyncFileInfo) TableName() string
Click to show internal directories.
Click to hide internal directories.