clio

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderBarBuffer    = 5
	DefaultHeaderWidth = 64
	DefaultKVWidth     = 32
	DefaultIndent      = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlignUI added in v0.0.5

type AlignUI struct {
	Client *clients.Polling
	Motd   *widgets.Paragraph
	// contains filtered or unexported fields
}

AlignUI wraps the alignment UI

func NewAlignUI added in v0.0.5

func NewAlignUI(version string, hostname string, timeout int, pollFrequency int) (*AlignUI, error)

NewAlignUI creates and returns a new alignment UI. pollFrequency in seconds

func (*AlignUI) BuildUI added in v0.0.5

func (a *AlignUI) BuildUI()

BuildUI does the initial setup of the UI

type Printer

type Printer struct {
	HeaderWidth int
	KVWidth     int
	Indent      int
	LeftIndent  string
}

func NewPrinter

func NewPrinter(headerWidth int, kvWidth int, indent int) *Printer

func (*Printer) PrintHeader

func (p *Printer) PrintHeader(title string)

func (*Printer) PrintKV

func (p *Printer) PrintKV(key string, value interface{})

func (*Printer) PrintKVIndent

func (p *Printer) PrintKVIndent(key string, value interface{})

Jump to

Keyboard shortcuts

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