Documentation ¶
Index ¶
- Constants
- Variables
- func HexStringToInt(hexStrToConvert string) (res uint32, err error)
- func InitConfigFile() (err error)
- func InitLoggers()
- func InitThemes() (err error)
- type Configuration
- type FilterConfiguration
- type FilterOperator
- type GUIConfiguration
- type GridConfiguration
- type GroupConfiguration
- type GroupLabelsConfiguration
- type GroupProperty
- type SpecificGUIConfiguration
- type WindowProperty
Constants ¶
View Source
const ( WindowID WindowProperty = "id" WindowClass = "class" WindowName = "name" WindowType = "type" Or FilterOperator = "or" And = "and" GroupID GroupProperty = "id" GroupName = "name" )
View Source
const DefaultCellSelectionGUITheme string = `` /* 743-byte string literal not displayed */
View Source
const DefaultGroupCreationGUITheme string = `` /* 598-byte string literal not displayed */
View Source
const DefaultGroupSelectionGUITheme string = `` /* 966-byte string literal not displayed */
View Source
const DefaultWindowSelectionGUITheme string = `` /* 967-byte string literal not displayed */
Variables ¶
View Source
var ( NormalLogger *logrus.Entry //nolint:gochecknoglobals //Need the main logger to be global VerboseLogger *logrus.Entry //nolint:gochecknoglobals //Need the main logger to be global )
View Source
var AlreadyExistsError error = eris.New("Element already exists")
AlreadyExistsError Sentinel error for element already existing.
View Source
var ConfigurationError error = eris.New("Error handling configuration configuration")
ConfigurationError Sentinel error for configuration argument.
View Source
var InternalError error = eris.New("Internal error")
InternalError Sentinel error for all purpose argument.
View Source
var InvalidArgumentError error = eris.New("Invalid argument")
InvalidArgumentError Sentinel error for invalid argument.
View Source
var NotExistsError error = eris.New("Element does not exist")
NotExistsError Sentinel error for non existent argument.
View Source
var OutOfRangeArgumentError error = eris.New("Out of range argument")
OutOfRangeArgumentError Sentinel error for out of range argument.
Functions ¶
func HexStringToInt ¶
func InitConfigFile ¶
func InitConfigFile() (err error)
func InitLoggers ¶
func InitLoggers()
func InitThemes ¶
func InitThemes() (err error)
Types ¶
type Configuration ¶
type Configuration struct { GridConfig GridConfiguration `yaml:"grid" mapstructure:"grid"` GUIConfig GUIConfiguration `yaml:"gui" mapstructure:"gui"` GroupLabelsConfig GroupLabelsConfiguration `yaml:"group_labels" mapstructure:"group_labels"` GroupConfigs []GroupConfiguration `yaml:"groups" mapstructure:"groups"` }
type FilterConfiguration ¶
type FilterConfiguration struct { WinProperty WindowProperty `yaml:"window_property,omitempty" mapstructure:"window_property,omitempty"` Regex string `yaml:"regex,omitempty" mapstructure:"regex,omitempty"` Operator FilterOperator `yaml:"operator,omitempty" mapstructure:"operator,omitempty"` Filters []FilterConfiguration `yaml:"filters,omitempty" mapstructure:"filters,omitempty"` }
type FilterOperator ¶
type FilterOperator string
func (*FilterOperator) UnmarshalJSON ¶
func (op *FilterOperator) UnmarshalJSON(b []byte) (err error)
type GUIConfiguration ¶
type GUIConfiguration struct { CellSelection SpecificGUIConfiguration `yaml:"cellselection" mapstructure:"cellselection"` GroupSelection SpecificGUIConfiguration `yaml:"groupselection" mapstructure:"groupselection"` WindowSelection SpecificGUIConfiguration `yaml:"windowselection" mapstructure:"windowselection"` GroupCreation SpecificGUIConfiguration `yaml:"groupcreation" mapstructure:"groupcreation"` }
type GridConfiguration ¶
type GroupConfiguration ¶
type GroupConfiguration struct { ID uint8 `yaml:"id" mapstructure:"id"` Name string `yaml:"name" mapstructure:"name"` Color string `yaml:"color" mapstructure:"color"` Filters []FilterConfiguration `yaml:"filters" mapstructure:"filters"` }
type GroupProperty ¶
type GroupProperty string
type WindowProperty ¶
type WindowProperty string
func (*WindowProperty) UnmarshalJSON ¶
func (wf *WindowProperty) UnmarshalJSON(b []byte) (err error)
Click to show internal directories.
Click to hide internal directories.