models

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Organizer     = `organizer`
	FileOrganizer = `fileOrganizer`
	Writer        = `write`
	Reader        = `reader`
	Commenter     = `commenter`
)

Variables

Functions

This section is empty.

Types

type Codec

type Codec struct {
	Encoder string `yaml:"encoder" default-value:"openssl aes-256-cbc -e -pbkdf2 -pass file:#{password-file}"`
	Decoder string `yaml:"decoder" default-value:"openssl aes-256-cbc -d -pbkdf2 -pass file:#{password-file}"`
}

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 Role

type Role string

func (Role) IsValid

func (r Role) IsValid() error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL