report

package
v0.0.0-...-a488d09 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// FontDir ... ttf font directory
	FontDir = ""
)

Functions

func SetFontDir

func SetFontDir(fontDir string)

SetFontDir ... sets up ttf font directory

Types

type Report

type Report interface {
	Generate() (pdf io.ReadCloser, err error)
	Clean()
}

Report groups functions related to genrating the report. After reading and closing the pdf returned by Generate(), call Clean() to delete the pdf file as well the temporary build files

func New

func New(g grafana.Client, dashName string, timeRange grafana.TimeRange) Report

New ... creates a new Report

Jump to

Keyboard shortcuts

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