bcdconsumertypes

package
v0.0.0-...-cf23005 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnableToStoreBrowserRelease = errors.New("unable to store browser release")

ErrUnableToStoreBrowserRelease indicates that the storage layer was unable to save the browser release.

Functions

This section is empty.

Types

type BrowserName

type BrowserName string

BrowserName is an enumeration of the high-level keys found in the data.json for the browsers. The json schema itself does not list these names explicitly so we maintain our own subset here.

const (
	Chrome         BrowserName = "chrome"
	Edge           BrowserName = "edge"
	Firefox        BrowserName = "firefox"
	Safari         BrowserName = "safari"
	ChromeAndroid  BrowserName = "chrome_android"
	FirefoxAndroid BrowserName = "firefox_android"
	SafariIos      BrowserName = "safari_ios"
)

type BrowserRelease

type BrowserRelease struct {
	BrowserName    BrowserName
	BrowserVersion string
	ReleaseDate    time.Time
}

BrowserRelease is the representation of the metric that comes from the BCD Consumer This is located in the shared lib package so that it can be used in the adapter and the workflow.

Jump to

Keyboard shortcuts

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