tabs

package
v0.0.0-...-3b0a8b9 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SyncedTick tea.Cmd = cmds.TickCommand(400 * time.Millisecond)

Functions

This section is empty.

Types

type BasicInformationModel

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

func NewBasincInformationModel

func NewBasincInformationModel() *BasicInformationModel

func (*BasicInformationModel) Init

func (b *BasicInformationModel) Init() tea.Cmd

func (*BasicInformationModel) Update

func (b *BasicInformationModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*BasicInformationModel) View

func (b *BasicInformationModel) View() string

type NetworkTabModel

type NetworkTabModel struct{}

func NewNetworkTabModel

func NewNetworkTabModel() (*NetworkTabModel, error)

func (*NetworkTabModel) Init

func (n *NetworkTabModel) Init() tea.Cmd

func (*NetworkTabModel) Update

func (n *NetworkTabModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*NetworkTabModel) View

func (n *NetworkTabModel) View() string

type ProcessManagerModel

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

func NewProcessManagerModel

func NewProcessManagerModel() *ProcessManagerModel

func (*ProcessManagerModel) Init

func (p *ProcessManagerModel) Init() tea.Cmd

func (*ProcessManagerModel) SetSize

func (p *ProcessManagerModel) SetSize(width, height int)

func (*ProcessManagerModel) Update

func (p *ProcessManagerModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ProcessManagerModel) View

func (p *ProcessManagerModel) View() string

type Tab

type Tab struct {
	tea.Model
	Name string
	// contains filtered or unexported fields
}

func GetAllTabs

func GetAllTabs() []Tab

func (*Tab) SetSize

func (t *Tab) SetSize(w, h int)

type TabsEnum

type TabsEnum int
const (
	BasicInformation TabsEnum = iota
	Usage
	ProcessManager
	Network
)

type UsageModel

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

func NewUsageModel

func NewUsageModel() (*UsageModel, error)

func (*UsageModel) Init

func (u *UsageModel) Init() tea.Cmd

func (*UsageModel) Update

func (u *UsageModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*UsageModel) View

func (u *UsageModel) View() string

Jump to

Keyboard shortcuts

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