package upload
import "cuelang.org/go/internal/golangorgx/telemetry/internal/upload"
Index ¶
Functions ¶
func LogIfDebug ¶
LogIfDebug arranges to write a log file in the directory dirname, if it exists. If dirname is the empty string, the function tries the directory it.Localdir/debug.
func SetLogOutput ¶
SetLogOutput sets the default logger's output destination.
Types ¶
type Uploader ¶
type Uploader struct { // Config is used to select counters to upload. Config *telemetry.UploadConfig // ConfigVersion is the version of the config. ConfigVersion string // LocalDir is where the local counter files are. LocalDir string // UploadDir is where uploader leaves the copy of uploaded data. UploadDir string // ModeFilePath is the file. ModeFilePath it.ModeFilePath UploadServerURL string StartTime time.Time // contains filtered or unexported fields }
Uploader carries parameters needed for upload.
func NewUploader ¶
func NewUploader(config *telemetry.UploadConfig) *Uploader
NewUploader creates a default uploader.
func (*Uploader) Run ¶
func (u *Uploader) Run()
Run generates and uploads reports
Source Files ¶
date.go findwork.go reports.go run.go upload.go
- Version
- v0.8.0-alpha.2
- Published
- Feb 20, 2024
- Platform
- linux/amd64
- Imports
- 22 packages
- Last checked
- 15 minutes ago –
Tools for package owners.