cmd

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

New returns the new root command.

func NewCacheLookupCommand added in v0.5.1

func NewCacheLookupCommand(
	config *cnf.Config,
	logger *logrus.Logger,
) *cobra.Command

NewCacheLookupCommand returns command to lookup cache.

func NewCoverageCommand

func NewCoverageCommand(
	config *cnf.Config,
	logger *logrus.Logger,
	printer interface {
		SetPrefix(string)
		PrintCoverage(model.Report) error
	},
) *cobra.Command

NewCoverageCommand returns command to calculate metrics coverage by queries.

func NewMetricsCommand

func NewMetricsCommand(
	config *cnf.Config,
	logger *logrus.Logger,
	printer interface {
		SetPrefix(string)
		PrintMetrics(entity.Metrics) error
	},
) *cobra.Command

NewMetricsCommand returns command to fetch metrics from Graphite.

func NewQueriesCommand

func NewQueriesCommand(
	config *cnf.Config,
	logger *logrus.Logger,
	printer interface{ PrintQueries(entity.Queries) error },
) *cobra.Command

NewQueriesCommand returns command to fetch queries from a Grafana dashboard.

Types

This section is empty.

Jump to

Keyboard shortcuts

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