http

package
v0.0.0-...-71f2f50 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int

type Int int

func (Int) String

func (i Int) String() string

type Ping

type Ping struct {
	// contains filtered or unexported fields
}

func New

func New(method string, url string, op *ping.Option, trace bool) (*Ping, error)

func (*Ping) Ping

func (p *Ping) Ping(ctx context.Context) *ping.Stats

type Trace

type Trace struct {
	DNSDuration time.Duration `json:"dns_duration"`

	ConnectDuration time.Duration `json:"connect_duration"`

	TLSDuration time.Duration `json:"tls_duration"`

	WroteRequestDuration time.Duration `json:"wrote_request_duration"`

	WaitResponseDuration time.Duration `json:"wait_response_duration"`

	BodyDuration time.Duration `json:"body_duration"`
	// contains filtered or unexported fields
}

func (*Trace) String

func (t *Trace) String() string

func (*Trace) WithTrace

func (t *Trace) WithTrace(ctx context.Context) context.Context

Jump to

Keyboard shortcuts

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