Documentation
¶
Overview ¶
Package formatter provides interfaces and implementations for formatting query effects reports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter interface {
// Format converts effects report to output format
Format(report *models.EffectsReport) ([]byte, error)
}
Formatter defines the interface for output formatters
type JSONFormatter ¶
type JSONFormatter struct {
// contains filtered or unexported fields
}
JSONFormatter formats usage reports as JSON
func NewJSONFormatter ¶
func NewJSONFormatter() *JSONFormatter
NewJSONFormatter creates a new JSON formatter
func (*JSONFormatter) Format ¶
func (f *JSONFormatter) Format(report *models.EffectsReport) ([]byte, error)
Format converts effects report to JSON format
Click to show internal directories.
Click to hide internal directories.