-
Notifications
You must be signed in to change notification settings - Fork 0
/
faketype.go
29 lines (23 loc) · 1.18 KB
/
faketype.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package structs
import (
"github.com/logrusorgru/aurora"
"github.com/projectdiscovery/nuclei/v2/pkg/output"
)
type FakeWrite struct{}
func (r *FakeWrite) WriteStoreDebugData(host, templateID, eventType string, data string) {
}
func (r *FakeWrite) Close() {}
func (r *FakeWrite) Colorizer() aurora.Aurora {
return nil
}
func (r *FakeWrite) WriteFailure(event output.InternalEvent) error { return nil }
func (r *FakeWrite) Write(w *output.ResultEvent) error { return nil }
func (r *FakeWrite) Request(templateID, url, requestType string, err error) {}
type FakeProgress struct{}
func (p *FakeProgress) Stop() {}
func (p *FakeProgress) Init(hostCount int64, rulesCount int, requestCount int64) {}
func (p *FakeProgress) AddToTotal(delta int64) {}
func (p *FakeProgress) IncrementRequests() {}
func (p *FakeProgress) IncrementMatched() {}
func (p *FakeProgress) IncrementErrorsBy(count int64) {}
func (p *FakeProgress) IncrementFailedRequestsBy(count int64) {}