Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlushWriter ¶
type JSONResultWriter ¶
type JSONResultWriter struct{}
type Logger ¶
type LoggerOption ¶
type LoggerOption func(*logger)
func FlushInterval ¶
func FlushInterval(interval time.Duration) LoggerOption
func JSON ¶
func JSON() LoggerOption
func Plain ¶
func Plain() LoggerOption
type PlainResultWriter ¶
type PlainResultWriter struct{}
type UniqueLogger ¶
type UniqueLogger struct {
// contains filtered or unexported fields
}
func NewUniqueLogger ¶
func NewUniqueLogger(logger Logger) *UniqueLogger
func (*UniqueLogger) Error ¶
func (l *UniqueLogger) Error(err error)
func (*UniqueLogger) LogResults ¶
func (l *UniqueLogger) LogResults(ctx context.Context, results <-chan scan.Result)
Click to show internal directories.
Click to hide internal directories.