display

package
v1.17.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgLevel

type MsgLevel int
const (
	MsgInfo MsgLevel = iota
	MsgNotice
	MsgWarn
	MsgError
)

func (MsgLevel) String

func (m MsgLevel) String() string

func (*MsgLevel) UnmarshalText added in v1.9.8

func (m *MsgLevel) UnmarshalText(text []byte) error

type Status

type Status int
const (
	StatusIdle Status = iota
	StatusRunning
	StatusWaiting
	StatusSucceeded
	StatusFailed
)

func (Status) String

func (s Status) String() string

type UI

type UI interface {
	UpdateStatus(s Status, msg string)
	Display(level MsgLevel, msg string)
	ClearStatus()
}
var (
	CLI  UI = _CLI{}
	NONE UI = _NONE{}
)

Jump to

Keyboard shortcuts

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