Documentation
¶
Index ¶
- Variables
- func DownloadFromCapturedJSON(jsonFile string, maxConcurrent int) error
- func InstallCertificate() error
- func RunHAD()
- func SetColor(c, t string) string
- func ShowManualInstructions()
- func Size4Human(b int64) string
- type AdaptiveBuffer
- type CaptureConfig
- type CaptureProxy
- type CapturedItem
- type DiskCache
- type Downloader
- type File
- type File4
- type FileStatus
- type FileType
- type GlobalStatus
- type Hash
- type Logger
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) SetVerbose(v bool)
- func (l *Logger) Success(format string, args ...interface{})
- func (l *Logger) Warning(format string, args ...interface{})
- type Metalink
- type Metalink4
- type NetrcEntry
- type Piece
- type RPCCommand
- type RPCError
- type RPCResponse
- type RPCServer
- type RequestLog
- type Session
- type URL
- type URL4
Constants ¶
This section is empty.
Variables ¶
View Source
var ExtensionGroups = map[FileType][]string{ TypeVideo: { ".mp4", ".mkv", ".avi", ".mov", ".wmv", ".flv", ".webm", ".m4v", ".mpg", ".mpeg", ".m2ts", ".mts", ".ts", ".m3u8", ".mpd", ".iso", ".vob", ".3gp", ".ogv", ".ogg", ".qt", ".rm", ".rmvb", ".asf", ".divx", ".xvid", ".264", ".265", ".hevc", }, TypeMusic: { ".mp3", ".wav", ".flac", ".aac", ".ogg", ".m4a", ".opus", ".wma", ".alac", ".ape", ".dsd", ".dff", ".dsf", ".mid", ".midi", ".ra", ".voc", ".vox", ".aiff", ".au", ".snd", ".amr", ".awb", ".weba", }, TypeImage: { ".jpg", ".jpeg", ".png", ".gif", ".bmp", ".svg", ".webp", ".ico", ".tiff", ".tif", ".raw", ".cr2", ".nef", ".arw", ".dng", ".heif", ".heic", ".jfif", ".pjpeg", ".pjp", ".avif", ".apng", ".cur", }, TypeDocument: { ".pdf", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".txt", ".rtf", ".odt", ".ods", ".odp", ".odg", ".csv", ".json", ".xml", ".md", ".epub", ".mobi", ".azw", ".azw3", ".cbr", ".cbz", ".ps", ".tex", ".log", ".ini", ".cfg", ".conf", ".yaml", ".yml", }, TypeArchive: { ".zip", ".rar", ".7z", ".tar", ".gz", ".bz2", ".xz", ".tgz", ".tbz2", ".txz", ".zst", ".lzma", ".lz", ".lzh", ".cab", ".arj", ".deb", ".rpm", ".pkg", ".msi", ".apk", ".ipa", ".jar", ".war", }, }
Functions ¶
func InstallCertificate ¶
func InstallCertificate() error
func ShowManualInstructions ¶
func ShowManualInstructions()
func Size4Human ¶
Types ¶
type AdaptiveBuffer ¶
type AdaptiveBuffer struct {
// contains filtered or unexported fields
}
func NewAdaptiveBuffer ¶
func NewAdaptiveBuffer() *AdaptiveBuffer
func (*AdaptiveBuffer) GetSize ¶
func (ab *AdaptiveBuffer) GetSize() int
func (*AdaptiveBuffer) Update ¶
func (ab *AdaptiveBuffer) Update(speedMBps float64)
type CaptureConfig ¶
type CaptureConfig struct {
Port string
FileTypes []FileType
CustomExtensions []string
Headers map[string]string
Cookie string
AutoDownload bool
OutputDir string
MinFileSize int64
MaxFileSize int64
ConfidenceLevel int
SaveToFile string
Verbose bool
CaptureBody bool
FilterDomain string
FilterPattern string
}
type CaptureProxy ¶
type CaptureProxy struct {
// contains filtered or unexported fields
}
func NewCaptureProxy ¶
func NewCaptureProxy(config *CaptureConfig) *CaptureProxy
func (*CaptureProxy) ExportLogs ¶
func (cp *CaptureProxy) ExportLogs(format string, filename string) error
func (*CaptureProxy) GetCapturedItems ¶
func (cp *CaptureProxy) GetCapturedItems() []CapturedItem
func (*CaptureProxy) GetRequestLogs ¶
func (cp *CaptureProxy) GetRequestLogs() []RequestLog
func (*CaptureProxy) GetStats ¶
func (cp *CaptureProxy) GetStats() map[string]interface{}
func (*CaptureProxy) Start ¶
func (cp *CaptureProxy) Start() error
type CapturedItem ¶
type DiskCache ¶
type DiskCache struct {
// contains filtered or unexported fields
}
func NewDiskCache ¶
func (*DiskCache) FlushToFile ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
type FileStatus ¶
type GlobalStatus ¶
type GlobalStatus struct {
// contains filtered or unexported fields
}
func NewGlobalStatus ¶
func NewGlobalStatus() *GlobalStatus
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) SetVerbose ¶
type NetrcEntry ¶
type RPCCommand ¶
type RPCResponse ¶
type RPCServer ¶
type RPCServer struct {
// contains filtered or unexported fields
}
func NewRPCServer ¶
func NewRPCServer(global *GlobalStatus) *RPCServer
type RequestLog ¶
Click to show internal directories.
Click to hide internal directories.