Help us shape the future of Go! Take the 2026 Go Developer Survey

tracker

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CITracker

type CITracker struct {
	ExecutingQueries int
	ExecutedQueries  int
	FoundFiles       int
	LoadedQueries    int
	ParsedFiles      int

	FoundCountLines  int
	ParsedCountLines int
	IgnoreCountLines int
	BagOfFilesParse  map[string]int
	BagOfFilesFound  map[string]int

	FoundResources       int
	LineInfoLoadFailures int
	// contains filtered or unexported fields
}

func NewTracker

func NewTracker(previewLines int) (*CITracker, error)

NewTracker will create a new instance of a tracker with the number of lines to display in results output number of lines can not be smaller than 1

func (*CITracker) FailedDetectLine

func (c *CITracker) FailedDetectLine()

FailedDetectLine - queries that fail to detect line are counted as failed to execute queries

func (*CITracker) FailedLineInfoDocument added in v1.10.0

func (c *CITracker) FailedLineInfoDocument()

FailedLineInfoDocument counts lazy line-info document load failures.

func (*CITracker) GetOutputLines

func (c *CITracker) GetOutputLines() int

GetOutputLines returns the number of lines to display in results output

func (*CITracker) TrackFileFound

func (c *CITracker) TrackFileFound(path string)

TrackFileFound adds a found file to be scanned

func (*CITracker) TrackFileFoundCountLines

func (c *CITracker) TrackFileFoundCountLines(countLines int)

TrackFileFoundCountLines - information about the lines of the scanned files

func (*CITracker) TrackFileFoundCountResources

func (c *CITracker) TrackFileFoundCountResources(countResources int)

TrackResourceFoundCountLines - information about the resources of the scanned files

func (*CITracker) TrackFileIgnoreCountLines

func (c *CITracker) TrackFileIgnoreCountLines(countLines int)

TrackFileIgnoreCountLines - information about the lines ignored of the parsed files

func (*CITracker) TrackFileParse

func (c *CITracker) TrackFileParse(path string)

TrackFileParse adds a successful parsed file to be scanned

func (*CITracker) TrackFileParseCountLines

func (c *CITracker) TrackFileParseCountLines(countLines int)

TrackFileParseCountLines - information about the lines of the parsed files

func (*CITracker) TrackQueryExecuting

func (c *CITracker) TrackQueryExecuting(queryAggregation int)

TrackQueryExecuting adds a executing queries

func (*CITracker) TrackQueryExecution

func (c *CITracker) TrackQueryExecution(queryAggregation int)

TrackQueryExecution adds a query executed

func (*CITracker) TrackQueryLoad

func (c *CITracker) TrackQueryLoad(queryAggregation int)

TrackQueryLoad adds a loaded query

Jump to

Keyboard shortcuts

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