printer

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDisplayError added in v1.0.0

func DefaultDisplayError(msg *records.ErrorRecord)

func Error

func Error(str string)

func Errorf added in v1.0.0

func Errorf(str string, args ...interface{})

func Print

func Print(str string)
func PrintLogo()

func PrintRelayOptions added in v0.15.0

func PrintRelayOptions(cliOpts *opts.CLIOptions)

func PrintTable added in v1.0.0

func PrintTable(cliOpts *opts.CLIOptions, count int64, receivedAt time.Time, data []byte, properties [][]string)

func PrintTableProperties added in v1.0.0

func PrintTableProperties(properties [][]string, timestamp time.Time)

PrintTableProperties prints only properties (no data or count)

Types

type JSONOutput added in v1.0.1

type JSONOutput struct {
	Count      int64      `json:"count"`
	ReceivedAt time.Time  `json:"received_at"`
	Data       string     `json:"data"`
	Properties [][]string `json:"properties"`
}

Jump to

Keyboard shortcuts

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