Documentation
¶
Index ¶
- type CSVWriter
- type HTMLWriter
- type OutputWriter
- type ResultEvent
- func (tr ResultEvent) CSV() string
- func (tr ResultEvent) CSVHeader() ([]byte, error)
- func (tr ResultEvent) ContentLengthString() string
- func (tr ResultEvent) EventToStdout() string
- func (tr ResultEvent) EventToStdoutNoColor() string
- func (tr ResultEvent) HTML() string
- func (tr ResultEvent) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVWriter ¶
type CSVWriter struct {
// contains filtered or unexported fields
}
func NewCSVWriter ¶
func (*CSVWriter) WriteString ¶
type HTMLWriter ¶
type HTMLWriter struct {
// contains filtered or unexported fields
}
func NewHTMLWriter ¶
func NewHTMLWriter(paths ...string) (*HTMLWriter, error)
func (*HTMLWriter) Close ¶
func (h *HTMLWriter) Close() error
func (*HTMLWriter) WriteString ¶
func (h *HTMLWriter) WriteString(data string)
type OutputWriter ¶
func NewOutputWriter ¶
func NewOutputWriter() (*OutputWriter, error)
func (*OutputWriter) AddWriters ¶
func (o *OutputWriter) AddWriters(writers ...io.Writer)
func (*OutputWriter) Write ¶
func (o *OutputWriter) Write(data []byte)
Write writes the data taken as input using only the writer(s) with that name.
func (*OutputWriter) WriteCSVData ¶
func (o *OutputWriter) WriteCSVData(result ResultEvent)
func (*OutputWriter) WriteHTMLData ¶
func (o *OutputWriter) WriteHTMLData(data ResultEvent)
func (*OutputWriter) WriteString ¶
func (o *OutputWriter) WriteString(data string)
WriteString writes the string taken as input using only
type ResultEvent ¶
type ResultEvent struct { TimeStamp time.Time `json:"timestamp" csv:"timestamp"` URL string `json:"target" csv:"url"` Path string `json:"path" csv:"path"` Method string `json:"method" csv:"method"` Title string `json:"title" csv:"title"` Host string `json:"host" csv:"host"` A []string `json:"A" csv:"a"` CNAME []string `json:"CNAME" csv:"cname"` Status int `json:"status" csv:"status"` ContentLength int `json:"content-length" csv:"content-length"` Server string `json:"server" csv:"server"` Technology []string `json:"technology" csv:"technology"` ResponseBody string `json:"response" csv:"-"` RequestBody string `json:"request" csv:"-"` Links []string `json:"-" csv:"-"` Header map[string][]string `json:"-" csv:"-"` }
func (ResultEvent) CSV ¶
func (tr ResultEvent) CSV() string
func (ResultEvent) CSVHeader ¶
func (tr ResultEvent) CSVHeader() ([]byte, error)
func (ResultEvent) ContentLengthString ¶ added in v2.1.0
func (tr ResultEvent) ContentLengthString() string
func (ResultEvent) EventToStdout ¶
func (tr ResultEvent) EventToStdout() string
func (ResultEvent) EventToStdoutNoColor ¶
func (tr ResultEvent) EventToStdoutNoColor() string
func (ResultEvent) HTML ¶
func (tr ResultEvent) HTML() string
func (ResultEvent) String ¶
func (tr ResultEvent) String() string
Click to show internal directories.
Click to hide internal directories.