Documentation ¶
Overview ¶
Package dashboard implements a web frontend for browsing performance data.
Index ¶
- Variables
- type BenchmarkGroup
- type Change
- type CommitChangeGroup
- type Handlers
- func (h *Handlers) About(w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) Benchmark(w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) Changes(w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) Commit(w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) File(w http.ResponseWriter, r *http.Request) (err error)
- func (h *Handlers) Index(w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) Init(ctx context.Context) error
- func (h *Handlers) Module(w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) Modules(w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) Package(w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) Result(w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type Option
- type PointsGroup
- type Templates
- func (t *Templates) ExecuteTemplate(ctx context.Context, w io.Writer, path, name string, data interface{}) error
- func (t *Templates) Func(name string, f interface{})
- func (t *Templates) Init(ctx context.Context) error
- func (t *Templates) SetCacheEnabled(enabled bool)
- func (t *Templates) Template(ctx context.Context, path string) (*template.Template, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AssetFileSystem = fs.NewMemWithFiles(assets) TemplateFileSystem = fs.NewSub(AssetFileSystem, "templates") StaticFileSystem = fs.NewSub(AssetFileSystem, "static") )
Embedded asset filesystems.
Functions ¶
This section is empty.
Types ¶
type BenchmarkGroup ¶
type CommitChangeGroup ¶
CommitChangeGroup is a group of significant changes for a commit.
func (*CommitChangeGroup) MaxAbsPercentChange ¶
func (g *CommitChangeGroup) MaxAbsPercentChange() float64
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
type Option ¶
type Option func(*Handlers)
func WithCacheControl ¶
func WithCacheControl(cc httputil.CacheControl) Option
func WithDataFileSystem ¶
func WithLogger ¶
func WithStaticFileSystem ¶
func WithTemplates ¶
type PointsGroup ¶
type PointsGroup struct { Title string Environment entity.Properties Points entity.Points Filtered []float64 Quantities []units.Quantity }
PointsGroup is a benchmark timeseries for a given environment.
type Templates ¶
type Templates struct {
// contains filtered or unexported fields
}
Templates manages a set of templates with a base layout.
func NewTemplates ¶
NewTemplates initializes a template collection.
func (*Templates) ExecuteTemplate ¶
func (t *Templates) ExecuteTemplate(ctx context.Context, w io.Writer, path, name string, data interface{}) error
ExecuteTemplate loads and renders the given template to w.
func (*Templates) SetCacheEnabled ¶
SetCacheEnabled configures whether templates are cached.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.