Versions in this module Expand all Collapse all v1 v1.0.11 Sep 10, 2024 Changes in this version + const OptionCACert + const OptionInterface v1.0.10 Jul 8, 2022 Changes in this version + const OptionBytes + const OptionCSV + const OptionCSVDelimiter + const OptionCSVHeader + const OptionChunks + const OptionConcurrent + const OptionDebug + const OptionDistance + const OptionDuration + const OptionExclude + const OptionHelp + const OptionIPv4 + const OptionIPv4Alt + const OptionIPv6 + const OptionIPv6Alt + const OptionJSON + const OptionList + const OptionLocalJSON + const OptionMebiBytes + const OptionNoDownload + const OptionNoICMP + const OptionNoPreAllocate + const OptionNoUpload + const OptionSecure + const OptionServer + const OptionServerJSON + const OptionShare + const OptionSimple + const OptionSkipCertVerify + const OptionSource + const OptionTelemetryExtra + const OptionTelemetryJSON + const OptionTelemetryLevel + const OptionTelemetryPath + const OptionTelemetryServer + const OptionTelemetryShare + const OptionTimeout + const OptionUploadSize + const OptionVersion + const TelemetryLevelBasic + const TelemetryLevelDebug + const TelemetryLevelDisabled + const TelemetryLevelFull + var BuildDate string + var ProgName string + var ProgVersion string + var UserAgent = ProgName + "/" + ProgVersion + type BytesCounter struct + func NewCounter() *BytesCounter + func (c *BytesCounter) AvgBytes() float64 + func (c *BytesCounter) AvgHumanize() string + func (c *BytesCounter) AvgMbps() float64 + func (c *BytesCounter) CurrentSpeed() float64 + func (c *BytesCounter) GenerateBlob() + func (c *BytesCounter) Read(p []byte) (int, error) + func (c *BytesCounter) SetMebi(mebi bool) + func (c *BytesCounter) SetUploadSize(uploadSize int) + func (c *BytesCounter) Start() + func (c *BytesCounter) Total() int + func (c *BytesCounter) Write(p []byte) (int, error) + type GetIPResult struct + ProcessedString string + RawISPInfo IPInfoResponse + type IPInfoResponse struct + City string + Country string + Hostname string + IP string + Location string + Organization string + Postal string + Readme string + Region string + Timezone string + type NoFormatter struct + func (f *NoFormatter) Format(entry *log.Entry) ([]byte, error) + type SeekWrapper struct + func (r *SeekWrapper) Seek(offset int64, whence int) (int64, error) + type Server struct + DownloadURL string + GetIPURL string + ID int + Name string + NoICMP bool + PingURL string + Server string + SponsorName string + SponsorURL string + TLog TelemetryLog + UploadURL string + func (s *Server) Download(silent bool, useBytes, useMebi bool, requests int, chunks int, ...) (float64, int, error) + func (s *Server) GetIPInfo(distanceUnit string) (*GetIPResult, error) + func (s *Server) GetURL() (*url.URL, error) + func (s *Server) ICMPPingAndJitter(count int, srcIp, network string) (float64, float64, error) + func (s *Server) IsUp() bool + func (s *Server) PingAndJitter(count int) (float64, float64, error) + func (s *Server) Sponsor() string + func (s *Server) Upload(noPrealloc, silent, useBytes, useMebi bool, requests int, uploadSize int, ...) (float64, int, error) + type TelemetryExtra struct + Extra string + ServerName string + type TelemetryLog struct + func (t *TelemetryLog) Logf(format string, a ...interface{}) + func (t *TelemetryLog) SetLevel(level int) + func (t *TelemetryLog) String() string + func (t *TelemetryLog) Verbosef(format string, a ...interface{}) + func (t *TelemetryLog) Warnf(format string, a ...interface{}) + type TelemetryServer struct + Level string + Path string + Server string + Share string + func (t *TelemetryServer) Basic() bool + func (t *TelemetryServer) Debug() bool + func (t *TelemetryServer) Disabled() bool + func (t *TelemetryServer) Full() bool + func (t *TelemetryServer) GetLevel() int + func (t *TelemetryServer) GetPath() (*url.URL, error) + func (t *TelemetryServer) GetShare() (*url.URL, error)