page

package
v0.2.1-0...-b772245 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDashboard

func NewDashboard(ctx context.Context, cfg DashboardCfg, logger log.Logger) (sync.Syncer, error)

NewDashboard returns a new syncer from a dashboard with all the required widgets loaded. The widgets the dashboard manages at the same time are syncers also.

Types

type DashboardCfg

type DashboardCfg struct {
	AppRelativeTimeRange time.Duration
	AppOverrideVariables map[string]string
	Controller           controller.Controller
	Dashboard            model.Dashboard
	Renderer             render.Renderer
}

DashboardCfg is the configuration required to create a Dashboard.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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