package configstore
import "golang.org/x/telemetry/internal/configstore"
Package configstore abstracts interaction with the telemetry config server. Telemetry config (golang.org/x/telemetry/config) is distributed as a go module containing go.mod and config.json. Programs that upload collected counters download the latest config using `go mod download`. This provides verification of downloaded configuration and cacheability.
Index ¶
- Constants
- func Download(version string, envOverlay []string) (*telemetry.UploadConfig, string, error)
- func Downloads() int64
Constants ¶
const (
ModulePath = "golang.org/x/telemetry/config"
)
Functions ¶
func Download ¶
Download fetches the requested telemetry UploadConfig using "go mod download". If envOverlay is provided, it is appended to the environment used for invoking the go command.
The second result is the canonical version of the requested configuration.
func Downloads ¶
func Downloads() int64
Downloads reports, for testing purposes, the number of times Download has been called.
Source Files ¶
download.go
- Version
- v0.0.0-20250214215356-6f9b61db478c (latest)
- Published
- Feb 14, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 3 days ago –
Tools for package owners.