opgraph

package
v0.1.53 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallGraph

type CallGraph struct {
	// contains filtered or unexported fields
}

CallGraph maintains a record of the current state of an op

func (*CallGraph) HandleEvent

func (g *CallGraph) HandleEvent(event *model.Event) error

HandleEvent accepts an opctl event and updates the call graph appropriately

func (CallGraph) String

func (g CallGraph) String(loader LoadingSpinner, now time.Time, collapseCompleted bool) string

String returns a visual representation of the current state of the call graph

type DotLoadingSpinner

type DotLoadingSpinner struct {
	// contains filtered or unexported fields
}

DotLoadingSpinner is a LoadingSpinner that uses brail dots that rotate

func (DotLoadingSpinner) String

func (l DotLoadingSpinner) String() string

type LoadingSpinner

type LoadingSpinner interface {
	String() string
}

LoadingSpinner has a string representation that indicates something's loading

type OutputManager

type OutputManager struct {
	// contains filtered or unexported fields
}

OutputManager allows printing a "resettable" thing at the bottom of a stream of terminal output, when a tty is used

func NewOutputManager

func NewOutputManager() OutputManager

NewOutputManager returns a new OutputManager

func (*OutputManager) Clear

func (o *OutputManager) Clear() error

Clear clears the last thing printed by this object

func (*OutputManager) Print

func (o *OutputManager) Print(str string) error

Print prints the given string, with a preceding separator and width limited to the size of the terminal

type StaticLoadingSpinner

type StaticLoadingSpinner struct{}

StaticLoadingSpinner is a LoadingSpinner that doesn't spin

func (StaticLoadingSpinner) String

func (StaticLoadingSpinner) String() string

Jump to

Keyboard shortcuts

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