dashboard

package
v0.0.0-...-fc6bf95 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToHHMMSS

func ConvertToHHMMSS(times []time.Time) []string

func GetTreeData

func GetTreeData(root *hyr.Webpage) *[]opts.TreeData

Types

type Dashboard

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

func NewDashboard

func NewDashboard(root *hyr.Webpage, observer *obs.Observer) *Dashboard

func (*Dashboard) A

func (dashboard *Dashboard) A() *[]opts.TreeData

func (*Dashboard) GetAgeChart

func (dashboard *Dashboard) GetAgeChart(bucketDuration time.Duration, duration time.Duration, ip string) *charts.Line

func (*Dashboard) GetFreshnessChart

func (dashboard *Dashboard) GetFreshnessChart(bucketDuration time.Duration, duration time.Duration, ip string) *charts.Line

func (*Dashboard) GetTreeChart

func (dashboard *Dashboard) GetTreeChart() *charts.Tree

func (*Dashboard) HandleAgeChart

func (dashboard *Dashboard) HandleAgeChart(w http.ResponseWriter, r *http.Request)

func (*Dashboard) HandleBy

func (dashboard *Dashboard) HandleBy(mux *http.ServeMux)

func (*Dashboard) HandleFreshnessChart

func (dashboard *Dashboard) HandleFreshnessChart(w http.ResponseWriter, r *http.Request)

func (*Dashboard) HandleMainPage

func (dashboard *Dashboard) HandleMainPage(w http.ResponseWriter, r *http.Request)

func (*Dashboard) HandleTreeChart

func (dashboard *Dashboard) HandleTreeChart(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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