property

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Map = make(map[string]Property)

Functions

This section is empty.

Types

type CommandProperty

type CommandProperty struct{}

func (*CommandProperty) FormattedSumValue

func (*CommandProperty) FormattedSumValue(_ config.ProcessConfigList, _ process.List) string

func (*CommandProperty) Name

func (*CommandProperty) Name() string

func (*CommandProperty) Value

type CommentProperty

type CommentProperty struct{}

func (*CommentProperty) FormattedSumValue

func (*CommentProperty) FormattedSumValue(_ config.ProcessConfigList, _ process.List) string

func (*CommentProperty) Name

func (*CommentProperty) Name() string

func (*CommentProperty) Value

type Comparator

type Comparator interface {
	Equal(string, string) (bool, error)
	Greater(string, string) (bool, error)
}

type FloatComparator

type FloatComparator struct{}

type GroupProperty

type GroupProperty struct{}

func (*GroupProperty) FormattedSumValue

func (*GroupProperty) FormattedSumValue(_ config.ProcessConfigList, _ process.List) string

func (*GroupProperty) Name

func (*GroupProperty) Name() string

func (*GroupProperty) Value

type NameProperty

type NameProperty struct{}

func (*NameProperty) FormattedSumValue

func (*NameProperty) FormattedSumValue(_ config.ProcessConfigList, _ process.List) string

func (*NameProperty) Name

func (*NameProperty) Name() string

func (*NameProperty) Value

type PidProperty

type PidProperty struct{}

func (*PidProperty) FormattedSumValue

func (*PidProperty) FormattedSumValue(_ config.ProcessConfigList, _ process.List) string

func (*PidProperty) Name

func (*PidProperty) Name() string

func (*PidProperty) Value

type Property

type Property interface {
	Name() string
	Value(*process.Process, *config.ProcessConfig) string
	FormattedSumValue(config.ProcessConfigList, process.List) string
}

type StateProperty

type StateProperty struct{}

func (*StateProperty) FormattedSumValue

func (*StateProperty) FormattedSumValue(processConfigList config.ProcessConfigList, processList process.List) string

func (*StateProperty) Name

func (*StateProperty) Name() string

func (*StateProperty) Value

func (*StateProperty) Value(p *process.Process, pConfig *config.ProcessConfig) string

type StringComparator

type StringComparator struct{}

func (*StringComparator) Equal

func (c *StringComparator) Equal(value1 string, value2 string) (bool, error)

func (*StringComparator) Greater

func (c *StringComparator) Greater(_ string, _ string) (bool, error)

type UptimeProperty

type UptimeProperty struct{}

func (*UptimeProperty) FormattedSumValue

func (*UptimeProperty) FormattedSumValue(_ config.ProcessConfigList, _ process.List) string

func (*UptimeProperty) Name

func (*UptimeProperty) Name() string

func (*UptimeProperty) Value

Jump to

Keyboard shortcuts

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