view

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App represents the application that will render the metrics dashboard.

func NewApp

func NewApp(cfg AppConfig, syncer viewsync.Syncer, logger log.Logger) *App

NewApp Is the main application

func (*App) Run

func (a *App) Run(ctx context.Context) error

Run will start running the application.

type AppConfig

type AppConfig struct {
	RefreshInterval   time.Duration
	TimeRangeStart    time.Time // Fixed optional time.
	TimeRangeEnd      time.Time // Fixed optional time.
	RelativeTimeRange time.Duration
}

AppConfig are the options to run the app. this configuration has values at global app level.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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