pretty

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//TransactionHeader is the header for transactions.
	TransactionHeader = "TRANSACTION\tSTARTED\tOPS\t\n"
)

Variables

This section is empty.

Functions

func PrintDetailedTransactionInfo

func PrintDetailedTransactionInfo(info *PrintableTransactionInfo) error

PrintDetailedTransactionInfo prints detailed information about a transaction to stdout.

func PrintTransactionInfo

func PrintTransactionInfo(w io.Writer, info *transaction.TransactionInfo, fullTimestamps bool)

PrintTransactionInfo prints a short summary of a transaction to the provided device.

Types

type PrintableTransactionInfo

type PrintableTransactionInfo struct {
	*transaction.TransactionInfo
	FullTimestamps bool
}

PrintableTransactionInfo wraps a transaction.TransactionInfo with the information needed to format it when printing.

Jump to

Keyboard shortcuts

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