upload

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0, BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogIfDebug

func LogIfDebug(dirname string) error

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

func SetLogOutput(logging io.Writer)

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

Jump to

Keyboard shortcuts

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