Documentation ¶
Index ¶
Constants ¶
View Source
const ( Hour Expiry = iota // expires after 1 hour Day // expires after 1 day Week // expires after 1 week Month // expires after 1 month Year // expires after 1 year Never // expires `"never"` Burn Feature = iota // delete after reading once Discussion // enable comments UploadFile // upload a file ShortenURL // shorten the paste url (does not support foreign urls) )
View Source
const ( PrivateBinAPIVersion int = 2 KDFIterations int = 100000 // kdf iterations PasteIDSize int = 8 // bytes,hex KDFSecretSize int = 32 // bytes AESKeySize int = 32 // bytes NonceSize int = 12 // bytes SaltSize int = 8 // bytes TagSize int = 128 // bits?? EncryptionAlgorithm string = "aes" EncryptionMode string = "gcm" DataCompression string = "zlib" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Paste ¶
type Paste struct {
// contains filtered or unexported fields
}
func CraftPaste ¶
func (*Paste) BurnAfterRead ¶
func (*Paste) OpenDiscussion ¶
func (*Paste) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.