Versions in this module Expand all Collapse all v0 v0.2.1 Nov 18, 2020 Changes in this version + const DefaultAddr + const DefaultInterval + const DefaultMaxPoints + const DefaultTemplate + const DefaultTheme + const DefaultTimeFormat + const VCStack + const VGCCPUFraction + const VGCNum + const VGCSzie + const VGoroutine + const VHeap + var ResponseHeaders = make(http.Header) + func Addr() string + func AttachHeaders(w http.ResponseWriter) + func Interval() int + func SetConfiguration(opts ...Option) + func SetHeaders(headers http.Header) + func StartRTCollect() + type GCCPUFractionViewer struct + func (vr *GCCPUFractionViewer) Name() string + func (vr *GCCPUFractionViewer) Serve(w http.ResponseWriter, _ *http.Request) + func (vr *GCCPUFractionViewer) View() *charts.Line + type GCNumViewer struct + func (vr *GCNumViewer) Name() string + func (vr *GCNumViewer) Serve(w http.ResponseWriter, _ *http.Request) + func (vr *GCNumViewer) View() *charts.Line + type GCSizeViewer struct + func (vr *GCSizeViewer) Name() string + func (vr *GCSizeViewer) Serve(w http.ResponseWriter, _ *http.Request) + func (vr *GCSizeViewer) View() *charts.Line + type GoroutinesViewer struct + func (vr *GoroutinesViewer) Name() string + func (vr *GoroutinesViewer) Serve(w http.ResponseWriter, _ *http.Request) + func (vr *GoroutinesViewer) View() *charts.Line + type HeapViewer struct + func (vr *HeapViewer) Name() string + func (vr *HeapViewer) Serve(w http.ResponseWriter, _ *http.Request) + func (vr *HeapViewer) View() *charts.Line + type Metrics struct + Time string + Values []float64 + type Option func(c *config) + func WithAddr(addr string) Option + func WithInterval(interval int) Option + func WithMaxPoints(n int) Option + func WithTemplate(t string) Option + func WithTheme(theme Theme) Option + func WithTimeFormat(s string) Option + type StackViewer struct + func (vr *StackViewer) Name() string + func (vr *StackViewer) Serve(w http.ResponseWriter, _ *http.Request) + func (vr *StackViewer) View() *charts.Line + type Theme string + const ThemeMacarons + const ThemeWesteros + type Viewer interface + Name func() string + Serve func(w http.ResponseWriter, _ *http.Request) + View func() *charts.Line + func NewGCCPUFractionViewer() Viewer + func NewGCNumViewer() Viewer + func NewGCSizeViewer() Viewer + func NewGoroutinesViewer() Viewer + func NewHeapViewer() Viewer + func NewStackViewer() Viewer