package configstore
import "cuelang.org/go/internal/golangorgx/telemetry/internal/configstore"
Package configstore abstracts interaction with the telemetry config server. Telemetry config (cuelang.org/go/internal/golangorgx/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 ¶
- func Download(version string, opts *DownloadOption) (telemetry.UploadConfig, string, error)
- type DownloadOption
Functions ¶
func Download ¶
func Download(version string, opts *DownloadOption) (telemetry.UploadConfig, string, error)
Download fetches the requested telemetry UploadConfig using "go mod download".
The second result is the canonical version of the requested configuration.
Types ¶
type DownloadOption ¶
type DownloadOption struct { // Env holds the environment variables used when downloading the configuration. // If nil, the process's environment variables are used. Env []string }
DownloadOption is an option for Download.
Source Files ¶
download.go
- Version
- v0.12.0 (latest)
- Published
- Jan 30, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 7 hours ago –
Tools for package owners.