output

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBsDataStructure

type DBsDataStructure map[uint64][]JsonKeyStructure

type JsonDBStructure

type JsonDBStructure struct {
	DB    uint64 `json:"db"`
	Count uint64 `json:"count"`
	Size  string `json:"size"`
}

type JsonKeyStructure

type JsonKeyStructure struct {
	Key   string `json:"key"`
	Count uint64 `json:"count"`
	Size  string `json:"size"`
}

type JsonOutput

type JsonOutput struct {
	MinSize uint64
	Out     ReportWriter
}

func (*JsonOutput) Output

func (o *JsonOutput) Output(r utils.DBReports)

type JsonStructure

type JsonStructure struct {
	DBs     DBsDataStructure `json:"DBs"`
	Summary SummaryStructure `json:"summary"`
	Total   JsonKeyStructure `json:"total"`
}

type ReportOutput

type ReportOutput interface {
	Output(r utils.DBReports)
}

type ReportWriter

type ReportWriter io.Writer

type SummaryStructure

type SummaryStructure []JsonDBStructure

type TableOutput

type TableOutput struct {
	MinSize uint64
	Out     ReportWriter
}

func DefaultTableOutput

func DefaultTableOutput() *TableOutput

func NewTableOutput

func NewTableOutput(minSize uint64, out ReportWriter) *TableOutput

func (*TableOutput) Output

func (o *TableOutput) Output(r utils.DBReports)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL