Documentation
¶
Index ¶
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Fatal(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func SetColorEnabled(enabled bool)
- func SetLogLevel(level LogLevel)
- func Warn(format string, args ...interface{})
- type Colorizer
- type LogLevel
- type Logger
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) Fatal(format string, args ...interface{})
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) SetColorEnabled(enabled bool)
- func (l *Logger) SetLevel(level LogLevel)
- func (l *Logger) Warn(format string, args ...interface{})
- type ResumeManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetColorEnabled ¶
func SetColorEnabled(enabled bool)
Types ¶
type Colorizer ¶
type Colorizer struct {
Enabled bool
}
Colorizer manages colored CLI output.
func NewColorizer ¶
NewColorizer creates a new Colorizer instance, detecting if colors should be enabled.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a simple, concurrency-safe logger.
func (*Logger) SetColorEnabled ¶
SetColorEnabled enables or disables colored output.
type ResumeManager ¶
type ResumeManager struct {
TotalCount uint32 // Loaded total from previous run
// contains filtered or unexported fields
}
ResumeManager handles tracking completed targets for resuming scans.
func NewResumeManager ¶
func NewResumeManager(path string, enabled bool) (*ResumeManager, error)
NewResumeManager initializes the manager and loads existing progress if resume is enabled.
func (*ResumeManager) Cleanup ¶
func (rm *ResumeManager) Cleanup()
Cleanup deletes the resume file (usually called when a scan finishes successfully).
func (*ResumeManager) IsCompleted ¶
func (rm *ResumeManager) IsCompleted(id string) bool
IsCompleted checks if a target ID has already been processed.
func (*ResumeManager) MarkCompleted ¶
func (rm *ResumeManager) MarkCompleted(id string)
MarkCompleted saves a target ID to the resume file.
func (*ResumeManager) SaveTotal ¶
func (rm *ResumeManager) SaveTotal(total uint32)
SaveTotal saves the total count to the resume file (only if file is empty/new).