speedtest

package
v0.0.0-...-3660fbd Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes int64

func (Bytes) GiB

func (b Bytes) GiB() float64

func (Bytes) KiB

func (b Bytes) KiB() float64

func (Bytes) MiB

func (b Bytes) MiB() float64

type Client

type Client struct {
	Endpoint  string        `json:"endpoint,omitempty"`
	BytesSent Bytes         `json:"bytesSent,omitempty"`
	TimeSpent time.Duration `json:"timeSpent,omitempty"`
}

func (*Client) IsPresent

func (c *Client) IsPresent() bool

func (Client) Throughput

func (c Client) Throughput() Bytes

type Cluster

type Cluster struct {
	Info Info `json:"info"`
}

type Drive

type Drive struct {
	Servers []DriveServers `json:"servers,omitempty"`
}

func (*Drive) IsPresent

func (d *Drive) IsPresent() bool

type DriveServers

type DriveServers struct {
	Endpoint string `json:"endpoint,omitempty"`
	Disks    []Perf `json:"perf,omitempty"`
}

type Get

type Get struct {
	Perf    Perf            `json:"perf,omitempty"`
	Servers []ObjectServers `json:"servers,omitempty"`
}

type Info

type Info struct {
	Version string `json:"minio_version"`
}

type Network

type Network struct {
	Servers []NetworkServers `json:"servers,omitempty"`
}

func (*Network) IsPresent

func (n *Network) IsPresent() bool

type NetworkServers

type NetworkServers struct {
	Endpoint string `json:"endpoint,omitempty"`
	Nic      Perf   `json:"perf,omitempty"`
}

type Object

type Object struct {
	ObjectSize Bytes `json:"objectSize,omitempty"`
	Threads    int   `json:"threads,omitempty"`
	Put        Put   `json:"PUT,omitempty"`
	Get        Get   `json:"GET,omitempty"`
}

func (*Object) IsPresent

func (o *Object) IsPresent() bool

type ObjectServers

type ObjectServers struct {
	Endpoint string `json:"endpoint,omitempty"`
}

type Perf

type Perf struct {
	Throughput      Bytes         `json:"throughput,omitempty"`
	ObjectsPerSec   int           `json:"objectsPerSec,omitempty"`
	ResponseTime    ResponseTime  `json:"responseTime,omitempty"`
	Ttfb            ResponseTime  `json:"ttfb,omitempty"`
	Tx              Bytes         `json:"tx,omitempty"`
	TxTotalDuration time.Duration `json:"txTotalDuration,omitempty"`
	Rx              Bytes         `json:"rx,omitempty"`
	RxTotalDuration time.Duration `json:"rxTotalDuration,omitempty"`
	Path            string        `json:"path,omitempty"`
	ReadThroughput  Bytes         `json:"readThroughput,omitempty"`
	WriteThroughput Bytes         `json:"writeThroughput,omitempty"`
}

func (*Perf) RxBps

func (p *Perf) RxBps() Bytes

func (*Perf) TxBps

func (p *Perf) TxBps() Bytes

type Put

type Put struct {
	Perf    Perf            `json:"perf,omitempty"`
	Servers []ObjectServers `json:"servers,omitempty"`
}

type ResponseTime

type ResponseTime struct {
	Avg   Bytes `json:"avg,omitempty"`
	P50   Bytes `json:"p50,omitempty"`
	P75   Bytes `json:"p75,omitempty"`
	P95   Bytes `json:"p95,omitempty"`
	P99   Bytes `json:"p99,omitempty"`
	P999  Bytes `json:"p999,omitempty"`
	L5P   Bytes `json:"l5p,omitempty"`
	S5P   Bytes `json:"s5p,omitempty"`
	Max   Bytes `json:"max,omitempty"`
	Min   Bytes `json:"min,omitempty"`
	Sdev  Bytes `json:"sdev,omitempty"`
	Range Bytes `json:"range,omitempty"`
}

type Result

type Result struct {
	Version         string
	Network         Network         `json:"network,omitempty"`
	Drive           Drive           `json:"drive,omitempty"`
	Object          Object          `json:"object,omitempty"`
	Client          Client          `json:"client,omitempty"`
	SiteReplication SiteReplication `json:"siteReplication,omitempty"`
}

func FromJsonByteArray

func FromJsonByteArray(jsonData []byte) (*Result, error)

func FromJsonFile

func FromJsonFile(jsonFile string) (*Result, error)

func FromZipFile

func FromZipFile(zipFile string) (*Result, error)

func (*Result) String

func (r *Result) String() string

func (*Result) ToJson

func (r *Result) ToJson() ([]byte, error)

type SiteReplication

type SiteReplication struct {
	Servers []SiteReplicationServers `json:"servers,omitempty"`
}

func (*SiteReplication) IsPresent

func (s *SiteReplication) IsPresent() bool

type SiteReplicationServers

type SiteReplicationServers struct {
	Endpoint string `json:"endpoint,omitempty"`
	Perf     Perf   `json:"perf,omitempty"`
}

Jump to

Keyboard shortcuts

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