workflow

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

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChromiumCodesearchEnumFetcher

type ChromiumCodesearchEnumFetcher struct {
	*httputils.HTTPFetcher
}

ChromiumCodesearchEnumFetcher fetches the enums from Chromium code search. The returned data will be base64 encoded and it is up the consumer to decode before reading.

func NewChromiumCodesearchEnumFetcher

func NewChromiumCodesearchEnumFetcher(httpClient *http.Client) (*ChromiumCodesearchEnumFetcher, error)

type ChromiumCodesearchEnumParser

type ChromiumCodesearchEnumParser struct{}

ChromiumCodesearchEnumFetcher parses the enums from Chromium code search. It expects the base64 encoded stream from ChromiumCodesearchEnumFetcher.

func (ChromiumCodesearchEnumParser) Parse

Inspired by the get_template_data method on the HistogramsHandler class https://github.com/GoogleChrome/chromium-dashboard/blob/main/internals/fetchmetrics.py

type ChromiumHistogramEnumsJobProcessor

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

func NewChromiumHistogramEnumsJobProcessor

func NewChromiumHistogramEnumsJobProcessor(
	enumsFetecher EnumsFetecher,
	enumsParser EnumsParser,
	histogramStorer HistogramStorer,
) ChromiumHistogramEnumsJobProcessor

NewChromiumHistogramEnumsJobProcessor constructs a ChromiumHistogramEnumsJobProcessor.

func (ChromiumHistogramEnumsJobProcessor) Process

type EnumsFetecher

type EnumsFetecher interface {
	Fetch(context.Context, ...httputils.FetchOption) (io.ReadCloser, error)
}

type Histogram

type Histogram struct {
	XMLName xml.Name `xml:"enum"`
	Name    string   `xml:"name,attr"`

	Values []HistogramInt `xml:"int"`
}

type HistogramConfiguration

type HistogramConfiguration struct {
	XMLName xml.Name       `xml:"histogram-configuration"`
	Enums   HistogramEnums `xml:"enums"`
}

type HistogramEnums

type HistogramEnums struct {
	XMLName    xml.Name    `xml:"enums"`
	Histograms []Histogram `xml:"enum"`
}

type HistogramInt

type HistogramInt struct {
	XMLName xml.Name `xml:"int"`
	Value   int64    `xml:"value,attr"`
	Label   string   `xml:"label,attr"`
}

type HistogramStorer

type HistogramStorer interface {
	SaveHistogramEnums(context.Context, metricdatatypes.HistogramMapping) error
}

HistogramStorer represents the behavior to the storage layer.

type JobArguments

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

func NewJobArguments

func NewJobArguments(histograms []metricdatatypes.HistogramName) JobArguments

NewJobArguments constructor to create JobArguments, encapsulating essential workflow parameters.

Jump to

Keyboard shortcuts

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