render

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grafana

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

func NewGrafana

func NewGrafana(options GrafanaOptions) *Grafana

func (*Grafana) GenerateDashboard

func (g *Grafana) GenerateDashboard(title string, metric string, operator string, value *float64, minutes *int, unit string) ([]byte, string, error)

type GrafanaAliasColors

type GrafanaAliasColors struct {
}

type GrafanaOptions

type GrafanaOptions struct {
	URL         string
	Timeout     int
	Datasource  string
	ApiKey      string
	Org         string
	Period      int
	ImageWidth  int
	ImageHeight int
}

type TextTemplate

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

func NewTextTemplate

func NewTextTemplate(name string, fileOrVar string, options TextTemplateOptions, vars interface{}) *TextTemplate

func (*TextTemplate) Execute

func (tpl *TextTemplate) Execute(object interface{}) (*bytes.Buffer, error)

type TextTemplateOptions

type TextTemplateOptions struct {
	TimeFormat string
}

Jump to

Keyboard shortcuts

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