mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47:51 +01:00
47 lines
1.8 KiB
Go
47 lines
1.8 KiB
Go
/*
|
|
File Name: File Formats.go
|
|
Copyright: 2021 Peernet s.r.o.
|
|
Author: Peter Kleissner
|
|
|
|
Definition of all recognized file formats. This file is likely being updated more frequently than regular code.
|
|
*/
|
|
|
|
package core
|
|
|
|
// Low-level content types of file data. This is a copy from Intelligence X.
|
|
const (
|
|
TypeBinary = iota // Binary/unspecified
|
|
TypeText // Plain text
|
|
TypePicture // Picture of any format
|
|
TypeVideo // Video
|
|
TypeAudio // Audio
|
|
TypeDocument // Any document file, including office documents, PDFs, power point, spreadsheets
|
|
TypeExecutable // Any executable file, OS independent
|
|
TypeContainer // Container files like ZIP, RAR, TAR
|
|
TypeCompressed // Compressed files like GZ, BZ
|
|
TypeFolder // Virtual folder
|
|
)
|
|
|
|
// High-level file types. New ones may be added as required.
|
|
const (
|
|
FormatBinary = iota // Binary/unspecified
|
|
FormatPDF // PDF document
|
|
FormatWord // Word document
|
|
FormatExcel // Excel
|
|
FormatPowerpoint // Powerpoint
|
|
FormatPicture // Pictures (including GIF, excluding icons)
|
|
FormatAudio // Audio files
|
|
FormatVideo // Video files
|
|
FormatContainer // Compressed files including ZIP, RAR, TAR and others
|
|
FormatHTML // HTML file
|
|
FormatText // Text file
|
|
FormatEbook // Ebook file
|
|
FormatCompressed // Compressed file.
|
|
FormatDatabase // Database file
|
|
FormatEmail // Single email
|
|
FormatCSV // CSV file
|
|
FormatFolder // Virtual folder
|
|
)
|
|
|
|
// Future tags to be defined for audio/video: Artist, Album, Title, Length, Bitrate, Codec
|