block

package
v0.0.0-...-cc00660 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block interface {
	Render(blocks.Notifier) string
	ID() string
	Menu(blocks.Notifier, blocks.Renderer, blocks.SessionManager)
	Close()
}

type Notifier

type Notifier interface {
	Push(string, string, string, string) error
}

type Renderer

type Renderer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer(n blocks.Notifier, b []Block, sm *SessionManager) *Renderer

func (*Renderer) Activate

func (br *Renderer) Activate(s string)

func (*Renderer) Close

func (br *Renderer) Close()

func (*Renderer) Disable

func (br *Renderer) Disable(s string)

func (*Renderer) Render

func (br *Renderer) Render() string

func (*Renderer) RenderMenu

func (br *Renderer) RenderMenu()

func (*Renderer) Run

func (br *Renderer) Run()

type SessionManager

type SessionManager struct {
	Application string
}

func (*SessionManager) AttachLogfiles

func (sm *SessionManager) AttachLogfiles(pr *process.Process, w *uilibs.UITerminalWriter, doneStdout, doneStderr chan bool)

func (*SessionManager) Path

func (sm *SessionManager) Path(s ...string) string

func (*SessionManager) Process

func (sm *SessionManager) Process(name, command string) *process.Process

Jump to

Keyboard shortcuts

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