Documentation ¶
Index ¶
Constants ¶
View Source
const ( PrettyFormat string = "pretty" JSONFormat string = "json" )
View Source
const ( BYTE = 1 << (10 * iota) KILOBYTE MEGABYTE GIGABYTE TERABYTE )
Variables ¶
This section is empty.
Functions ¶
func GetSupportedFormats ¶ added in v1.16.100
func GetSupportedFormats() []string
Types ¶
type Formatter ¶ added in v1.16.100
type Formatter interface {
Format(*OutputFormat) (string, error)
}
func NewFormatter ¶ added in v1.16.100
type MetadataInfo ¶ added in v1.16.100
type MetadataInfo struct { ID string Size int64 Index uint64 Term uint64 Version raft.SnapshotVersion }
MetadataInfo is used for passing information through the formatter
type OutputFormat ¶ added in v1.16.100
type OutputFormat struct { Meta *MetadataInfo Stats []typeStats StatsKV []typeStats TotalSize int TotalSizeKV int }
OutputFormat is used for passing information through the formatter
type SnapshotInfo ¶ added in v1.16.100
type SnapshotInfo struct { Meta MetadataInfo Stats map[structs.MessageType]typeStats StatsKV map[string]typeStats TotalSize int TotalSizeKV int }
SnapshotInfo is used for passing snapshot stat information between functions
Click to show internal directories.
Click to hide internal directories.