ping

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package ping tries to ping a HTTP server through different ways Connection, Session (Head), Get and Post

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(URL string) string

Normalize

Types

type Ping

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

Ping represents HTTP ping request

func NewPing

func NewPing(URL string, timeout time.Duration) (*Ping, error)

NewPing validate and constructs request object

func (*Ping) Run

func (p *Ping) Run()

type Result

type Result struct {
	StatusCode int
	ConnTime   float64
	TotalTime  float64
	Size       int
	Proto      string
	Server     string
	Status     string
}

Jump to

Keyboard shortcuts

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