package
0.0.0-20220320150600-1ad3f1bbd9ab
Repository: https://github.com/itglobal/dashboard.git
Documentation: pkg.go.dev

# Functions

GetFactory selects a provider factory by its key.
GetIntegerDefault reads an integer config parameter or returns default value.
GetStringDefault reads a string config parameter or returns default value.
RegisterFactory registers a provider factory.

# Constants

Size1x defines smallest 1x1 tile.
Size2x defines 2x1 (horizontal) tile.
Size4x defines 2x2 tile.
StateDefault is a default "Gray" tile state.
StateError defines "Red" tile state.
StateIndeterminate defines "Cyan" tile state.
StateSuccess defines "Green" tile state.
StateWarning defines "Yellow" tile state.
TypeText is a tile with a text only.
TypeTextStatus is a tile with header and text.
TypeTextStatus2 is a tile with header and large text.
TypeTextStatusProgress is a tile with header, text and progress bar with label.

# Variables

ErrBadConfig is an error that refers to wrong provider config parameters.

# Interfaces

Config defines methods to read tile config parameters.
Factory is a factory for tile providers.
Manager defines methods to manage tiles.
Provider defines methods for sources that provide dashboard items.
Tile defines methods to modify properties of one specific tile.
Updater defines methods to add, update or remove tiles.

# Type aliases

ID is a tile identifier.
Size is a size of a tile.
State is a state of a tile.
Type is a type of a tile.