Versions in this module Expand all Collapse all v0 v0.1.0 Aug 21, 2021 Changes in this version + const RendererConnTimeoutSecs + const RendererRequestTimeoutSecs + func NewEmptyBackend(healthy bool) backend.Backend + func NewEmptyRecorder() metric.Recorder + func RandomString(size int) string + func RandomUUID(t *testing.T) uuid.UUID + type ChartScale struct + func NewBandChartScale() *ChartScale + func NewLinearChartScale() *ChartScale + func (s *ChartScale) InvertRanges() *ChartScale + func (s *ChartScale) SetCategoriesDomain() *ChartScale + func (s *ChartScale) SetNoBoundariesOffset() *ChartScale + func (s *ChartScale) SetNumericDomain() *ChartScale + func (s *ChartScale) SetPaddings() *ChartScale + func (s *ChartScale) SetRanges(rangeStart, rangeEnd int32) *ChartScale + func (s *ChartScale) Unembed() *render.ChartScale + func (s *ChartScale) UnsetDomain() *ChartScale + func (s *ChartScale) UnsetKind() *ChartScale + func (s *ChartScale) UnsetRanges() *ChartScale + type ChartView struct + func NewAreaView() *ChartView + func NewHorizontalBarView() *ChartView + func NewLineView() *ChartView + func NewScatterView() *ChartView + func NewVerticalBarView() *ChartView + func (v *ChartView) SetBadFillRGBColor() *ChartView + func (v *ChartView) SetBarLabelPosition() *ChartView + func (v *ChartView) SetDefaultBarBools() *ChartView + func (v *ChartView) SetDefaultBarParams() *ChartView + func (v *ChartView) SetDefaultColors() *ChartView + func (v *ChartView) SetDefaultPointBools() *ChartView + func (v *ChartView) SetDefaultPointParams() *ChartView + func (v *ChartView) SetFillAndStrokeColor() *ChartView + func (v *ChartView) Unembed() *render.ChartView + func (v *ChartView) UnsetKind() *ChartView + func (v *ChartView) UnsetValues() *ChartView + type CreateChartRequest struct + func NewCreateChartRequest() *CreateChartRequest + func (req *CreateChartRequest) AddAreaView() *CreateChartRequest + func (req *CreateChartRequest) AddLineView() *CreateChartRequest + func (req *CreateChartRequest) AddVerticalBarView() *CreateChartRequest + func (req *CreateChartRequest) AddView(v *render.ChartView) *CreateChartRequest + func (req *CreateChartRequest) SetBadMargins() *CreateChartRequest + func (req *CreateChartRequest) SetBadSizes() *CreateChartRequest + func (req *CreateChartRequest) SetBandBottomAxis() *CreateChartRequest + func (req *CreateChartRequest) SetBottomAxisLabel() *CreateChartRequest + func (req *CreateChartRequest) SetLeftAxisLabel() *CreateChartRequest + func (req *CreateChartRequest) SetLinearLeftAxis() *CreateChartRequest + func (req *CreateChartRequest) SetMargins() *CreateChartRequest + func (req *CreateChartRequest) SetSizes() *CreateChartRequest + func (req *CreateChartRequest) SetTitle() *CreateChartRequest + func (req *CreateChartRequest) Unembed() *render.CreateChartRequest + type EmptyBackend struct + func (b *EmptyBackend) IsHealthy() bool + func (b *EmptyBackend) RendererClient() render.ChartRendererClient + func (b *EmptyBackend) RendererRequestTimeout() time.Duration + func (b *EmptyBackend) Shutdown() + type EmptyRecorder struct + func (er *EmptyRecorder) HTTPHandler() http.Handler + func (er *EmptyRecorder) RequestDuration() *prometheus.HistogramVec + type JSONChartScale struct + func NewJSONBandChartScale() *JSONChartScale + func NewJSONLinearChartScale() *JSONChartScale + func (s *JSONChartScale) SetNoBoundariesOffset() *JSONChartScale + func (s *JSONChartScale) SetTwoDomains() *JSONChartScale + func (s *JSONChartScale) Unembed() *view.ChartScale + type JSONChartView struct + func NewJSONAreaView() *JSONChartView + func NewJSONHorizontalBarView() *JSONChartView + func NewJSONLineView() *JSONChartView + func NewJSONVerticalBarView() *JSONChartView + func (v *JSONChartView) SetBadPointsCount() *JSONChartView + func (v *JSONChartView) SetPointsValues() *JSONChartView + func (v *JSONChartView) SetScalarValues() *JSONChartView + func (v *JSONChartView) Unembed() *view.ChartView + func (v *JSONChartView) UnsetValues() *JSONChartView + type JSONCreateChartRequest struct + func NewJSONCreateChartRequest() *JSONCreateChartRequest + func (req *JSONCreateChartRequest) AddLineView() *JSONCreateChartRequest + func (req *JSONCreateChartRequest) AddVerticalBarView() *JSONCreateChartRequest + func (req *JSONCreateChartRequest) SetBandBottomAxis() *JSONCreateChartRequest + func (req *JSONCreateChartRequest) SetBottomAxisLabel() *JSONCreateChartRequest + func (req *JSONCreateChartRequest) SetLeftAxisLabel() *JSONCreateChartRequest + func (req *JSONCreateChartRequest) SetLinearLeftAxis() *JSONCreateChartRequest + func (req *JSONCreateChartRequest) SetMargins() *JSONCreateChartRequest + func (req *JSONCreateChartRequest) SetSizes() *JSONCreateChartRequest + func (req *JSONCreateChartRequest) SetTitle() *JSONCreateChartRequest + func (req *JSONCreateChartRequest) Unembed() *view.CreateChartRequest v0.0.1 Jun 29, 2021 Changes in this version + var ErrRequestCancelled = errors.New("request to testing lc-renderer is cancelled") + func AreaCreateChartRequest() *render.CreateChartRequest + func AreaView() *render.ChartView + func AreaViewBadRGBColor() *render.ChartView + func AreaViewWithDefaults() *render.ChartView + func BadMarginsCreateChartRequest() *render.CreateChartRequest + func BadSizesCreateChartRequest() *render.CreateChartRequest + func BandChartScale() *render.ChartScale + func BandChartScaleWithRanges(rangeStart, rangeEnd int32) *render.ChartScale + func BandChartScaleWithoutCategoriesDomain() *render.ChartScale + func BandChartScaleWithoutDomain() *render.ChartScale + func BandChartScaleWithoutKind() *render.ChartScale + func BandChartScaleWithoutRanges() *render.ChartScale + func ColorsDefault() *render.ChartViewColors + func GetChartRequest(chartID string) *render.GetChartRequest + func HorizontalBarView() *render.ChartView + func HorizontalBarViewWithDefaults() *render.ChartView + func HorizontalBarViewWithoutValues() *render.ChartView + func LineView() *render.ChartView + func LineViewWithDefaults() *render.ChartView + func LinearChartScale() *render.ChartScale + func LinearChartScaleWithDefaults() *render.ChartScale + func LinearChartScaleWithDefaultsAndInvertedRanges() *render.ChartScale + func LinearChartScaleWithRangesAndPaddings(rangeStart, rangeEnd int32) *render.ChartScale + func LinearChartScaleWithoutNumericDomain() *render.ChartScale + func LinearChartScaleWithoutRanges() *render.ChartScale + func ScatterView() *render.ChartView + func ScatterViewWithDefaults() *render.ChartView + func UnspecifiedKindView() *render.ChartView + func VerticalBarAndLineCreateChartRequest() *render.CreateChartRequest + func VerticalBarView() *render.ChartView + func VerticalBarViewWithDefaults() *render.ChartView + type Opts struct + ChartData []byte + FailMsg string + Latency time.Duration + type TestingChartRendererServer struct + func NewTestingChartRendererServer(opts Opts) (*TestingChartRendererServer, error) + func (s *TestingChartRendererServer) Address() string + func (s *TestingChartRendererServer) RenderChart(ctx context.Context, req *render.RenderChartRequest) (*render.RenderChartReply, error) + func (s *TestingChartRendererServer) Serve(ctx context.Context) error