Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogEntry ¶
type LogEntry struct {
Timestamp time.Time `json:"timestamp"`
Method string `json:"method"`
URL string `json:"url"`
Headers map[string]string `json:"headers,omitempty"`
Body string `json:"body,omitempty"`
ResponseStatus int `json:"response_status"`
ResponseBody string `json:"response_body,omitempty"`
TimeMs int64 `json:"time_ms"`
Payload string `json:"payload"`
Module string `json:"module"`
Point string `json:"point"`
}
LogEntry represents a single request/response log line
type ScanLogger ¶
type ScanLogger struct {
// contains filtered or unexported fields
}
ScanLogger writes JSON lines to a file
func NewScanLogger ¶
func NewScanLogger(path string) (*ScanLogger, error)
NewScanLogger opens a file for append and returns a logger
Click to show internal directories.
Click to hide internal directories.