components

package
v0.0.0-...-8ecc595 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Components

type Components struct {
	Logger *logger.Logger
	Items  sync.Map
	Order  int
}

Components -

func (*Components) GetAllStats

func (cc *Components) GetAllStats() (items []componentstypes.AllStats)

GetAllStats -

func (*Components) New

func (cc *Components) New()

New -

func (*Components) Register

func (cc *Components) Register(items *Items)

Register -

func (*Components) Run

func (cc *Components) Run(ID string, exc string, opts []string, callback func())

Run -

func (*Components) SetActive

func (cc *Components) SetActive(name string, active bool)

SetActive -

type Items

type Items struct {
	ID          string
	Name        string
	Cmd         string
	Opts        []string
	RunCallback func()
	Enable      bool
	System      bool
	Order       int
	Exec        *exec.Cmd
	Stats       func(*Items) monitor.Stats
}

Items -

func (*Items) GetStats

func (cc *Items) GetStats() (stats monitor.Stats)

GetStats -

func (*Items) IsRun

func (cc *Items) IsRun() bool

IsRun -

Jump to

Keyboard shortcuts

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