dashboard

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeDesktop = "desktop"
)

dashboard types

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID          string               `json:"id" yaml:"id"`
	Type        string               `json:"type" yaml:"type"`
	Title       string               `json:"title" yaml:"title"`
	Description string               `json:"description" yaml:"description"`
	Favorite    bool                 `json:"favorite" yaml:"favorite"`
	Disabled    bool                 `json:"disabled" yaml:"disabled"`
	Labels      cmap.CustomStringMap `json:"labels" yaml:"labels"`
	Widgets     []Widget             `json:"widgets" yaml:"widgets"`
	ModifiedOn  time.Time            `json:"modifiedOn" yaml:"modifiedOn"`
}

Config for dashboard

type Layout

type Layout struct {
	Width  int `json:"w" yaml:"w"`
	Height int `json:"h" yaml:"h"`
	X      int `json:"x" yaml:"x"`
	Y      int `json:"y" yaml:"y"`
}

Layout details

type Widget

type Widget struct {
	ID                string         `json:"id" yaml:"id"`
	Title             string         `json:"title" yaml:"title"`
	ShowTitle         bool           `json:"showTitle" yaml:"showTitle"`
	ScrollbarDisabled bool           `json:"scrollbarDisabled" yaml:"scrollbarDisabled"`
	Static            bool           `json:"static" yaml:"static"`
	Type              string         `json:"type" yaml:"type"`
	Layout            Layout         `json:"layout" yaml:"layout"`
	Config            cmap.CustomMap `json:"config" yaml:"config"`
}

Widget details

Jump to

Keyboard shortcuts

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