Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ReportTemplate = template.Must(template.New("report").Parse(`# Summary
Total time: {{.TotalTime}}
Trace: {{.Trace}}
# Bandwidth
{{.BandwidthTable}}
# Bitswap
{{.BitswapTable}}`))
)
Functions ¶
This section is empty.
Types ¶
type OutputType ¶
type OutputType string
var ( OutputAuto OutputType = "auto" OutputTable OutputType = "table" OutputID OutputType = "id" OutputUnix OutputType = "unix" OutputJSON OutputType = "json" )
type Printer ¶
type Printer interface {
Print(v interface{}) error
}
func GetPrinter ¶
func GetPrinter(output, auto OutputType) (Printer, error)
func NewIDPrinter ¶
func NewIDPrinter() Printer
func NewJSONPrinter ¶
func NewJSONPrinter() Printer
func NewTablePrinter ¶
func NewTablePrinter() Printer
func NewUnixPrinter ¶
func NewUnixPrinter() Printer
Click to show internal directories.
Click to hide internal directories.