components

package
v0.0.0-...-9e6d8ee Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllStats

type AllStats struct {
	ID         string        `json:"id"`
	Group      string        `json:"group"`
	ProviderID string        `json:"providerId"`
	Stats      monitor.Stats `json:"stats"`
}

AllStats -

type Components

type Components struct {
	ID         string        `json:"id"`
	Name       string        `json:"name"`
	Group      string        `json:"group"`
	ProviderID string        `json:"providerId"`
	Stats      monitor.Stats `json:"stats"`
	Enable     bool          `json:"enable"`
	System     bool          `json:"system"`
	Order      int           `json:"order"`
	RunOrder   int           `json:"runOrder"`
}

Components -

type Items

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

Items -

func (*Items) GetStats

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

GetStats -

func (*Items) IsRun

func (cc *Items) IsRun() bool

IsRun -

type Stores

type Stores struct {
	OnNewLogs sync.Map
	Items     sync.Map
}

Stores -

Jump to

Keyboard shortcuts

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