dashboard

package
v4.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatNumber

func FormatNumber(n int64) string

FormatNumber formats int number to string following https://en.wikipedia.org/wiki/Long_and_short_scales

func ToRGBAString

func ToRGBAString(r int, g int, b int, a float32) string

ToRGBAString returns a string representation of rgba colour

Types

type Dashboard

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

Dashboard represents html dashboard class

func NewDashboard

func NewDashboard(
	title string,
	isProxy bool,
	storages common.Storages,
	httpClients common.HTTPClients,
) *Dashboard

NewDashboard returns an instance of Dashboard struct

func (*Dashboard) HTML

func (d *Dashboard) HTML() string

HTML returns parsed HTML code

func (*Dashboard) HTMLSegmentKeys

func (d *Dashboard) HTMLSegmentKeys(segmentName string) string

HTMLSegmentKeys return a html representation of segment's keys list

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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