Documentation ¶
Index ¶
- func DownloadFile(url string) (string, error)
- func GetCodeLongInfo(code int) string
- func GetCodeShortInfo(code int) string
- func GetHTTP(url string, headers []string) (string, error)
- func PostHTTP(url string, data string, headers []string) (*http.Response, error)
- type Definition
- type Hammer
- func (h *Hammer) GetDuration() time.Duration
- func (h *Hammer) GetFailed() int
- func (h *Hammer) GetHits() uint
- func (h *Hammer) GetQuickest() time.Duration
- func (h *Hammer) GetSlowest() time.Duration
- func (h *Hammer) GetStartTime() time.Time
- func (h *Hammer) Run()
- func (h *Hammer) SetDelay(delay time.Duration) *Hammer
- func (h *Hammer) SetHitCount(number uint) *Hammer
- func (h *Hammer) SetSpread(spread time.Duration) *Hammer
- func (h *Hammer) SetThreadCount(number uint) *Hammer
- func (h *Hammer) SetURL(url string) *Hammer
- type Site
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func GetCodeLongInfo ¶
func GetCodeShortInfo ¶
Types ¶
type Definition ¶
type Definition struct {
// contains filtered or unexported fields
}
func GetCodeInfo ¶
func GetCodeInfo(code int) Definition
type Hammer ¶
type Hammer struct {
// contains filtered or unexported fields
}
func (*Hammer) GetDuration ¶
func (*Hammer) GetQuickest ¶
func (*Hammer) GetSlowest ¶
func (*Hammer) GetStartTime ¶
func (*Hammer) SetHitCount ¶
func (*Hammer) SetThreadCount ¶
type Site ¶
The Site struct encapsulates the details about the site being monitored.
func (*Site) LastStatus ¶
func (*Site) LastStatusString ¶
Click to show internal directories.
Click to hide internal directories.