Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mail ¶
type Mail struct { gorm.Model From User `gorm:"foreignkey:FromRefer"` FromRefer uint `gorm:"not null"` To User `gorm:"foreignkey:ToRefer"` ToRefer uint `gorm:"not null"` SymmetricKey SymmetricKey `gorm:"foreignkey:SymmetricKeyRefer"` SymmetricKeyRefer uint Body string `gorm:"not null"` Image []byte IsContainImage bool Hash string IsEncrypted bool `gorm:"not null;default:false"` Signature []byte }
Mail model.
type SymmetricKey ¶
type SymmetricKey struct { gorm.Model Sender User `gorm:"foreignkey:SenderRefer;"` SenderRefer uint `gorm:"not null"` Receiver User `gorm:"foreignkey:ReceiverRefer;"` ReceiverRefer uint `gorm:"not null"` Key string `gorm:"not null"` IsAutoGenerated bool `gorm:"not null;default:false"` }
Symmetric Key model.
Click to show internal directories.
Click to hide internal directories.