models

package
v0.0.0-...-876c23e Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const PROCESSLEN = 16

Variables

View Source
var (
	Wwidth, Wheight, _ = terminal.GetSize(fd)
	WeightSet          = 23
	WeightChat         = Wwidth - WeightSet - 8
)
View Source
var (
	Style = lipgloss.NewStyle()
)

Functions

func ExecPsMem

func ExecPsMem(prog Program) string

func HandlerSig

func HandlerSig(app *App)

func NewView

func NewView(width, height int) (v view)

Types

type App

type App struct {
	Program      Program
	Mu           sync.Mutex
	ConfigSelect string
	Chan         ChanApp

	Config []Config `yaml:"configs"`

	Input *Input
	// contains filtered or unexported fields
}

func New

func New() *App

func (*App) CheckingParse

func (app *App) CheckingParse() *App

func (*App) Errror

func (app *App) Errror() error

func (*App) Listen

func (app *App) Listen() *App

func (*App) OptionsView

func (app *App) OptionsView()

func (*App) RunViewPort

func (app *App) RunViewPort()

func (*App) Start

func (app *App) Start() *App

type ChanApp

type ChanApp struct {
	Call chan bool
	// contains filtered or unexported fields
}

type ChanProg

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

type Config

type Config struct {
	Name       string   `yaml:"name"`
	Cmd        []string `yaml:"cmd"`
	Executable string   `yaml:"executable"`
	Extension  string   `yaml:"extension"`
	Interval   int      `yaml:"interval"`
	Path       string   `yaml:"path"`
}

type Configs

type Configs struct {
	Configs []Config `yaml:"configs"`
}

type Input

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

type Program

type Program struct {
	Pid     int
	Process *os.Process
	Config  *Config `yaml:"configs"`
	TTY     string

	Chan ChanProg
	// contains filtered or unexported fields
}

func NewProg

func NewProg(config *Config) *Program

Jump to

Keyboard shortcuts

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