cli

package
v0.0.0-...-9dc6399 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProgressBar

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

func NewDefaultProgressBar

func NewDefaultProgressBar(max int, description string) *DefaultProgressBar

func (*DefaultProgressBar) Add

func (p *DefaultProgressBar) Add(i int)

func (*DefaultProgressBar) Clear

func (p *DefaultProgressBar) Clear()

type JSONRenderer

type JSONRenderer struct{}

func (JSONRenderer) Render

func (r JSONRenderer) Render(result *model.BenchmarkResult) (string, error)

type NoOpProgressBar

type NoOpProgressBar struct {
}

func NewNoProgressBar

func NewNoProgressBar() *NoOpProgressBar

func (*NoOpProgressBar) Add

func (p *NoOpProgressBar) Add(_ int)

func (*NoOpProgressBar) Clear

func (p *NoOpProgressBar) Clear()

type ProgressBar

type ProgressBar interface {
	Add(int)
	Clear()
}

type Renderer

type Renderer interface {
	Render(result *model.BenchmarkResult) (string, error)
}

type TableRenderer

type TableRenderer struct{}

func (TableRenderer) Render

func (r TableRenderer) Render(result *model.BenchmarkResult) (string, error)

Jump to

Keyboard shortcuts

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