Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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.
Click to show internal directories.
Click to hide internal directories.