Documentation ¶
Index ¶
Constants ¶
View Source
const THRESHOLD = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URLMonitor ¶
URLMonitor This struct handles status of each url
func (*URLMonitor) GetCurrentStatus ¶
func (monitor *URLMonitor) GetCurrentStatus() (bool, int, int, bool)
func (*URLMonitor) IsReady ¶
func (monitor *URLMonitor) IsReady() bool
func (*URLMonitor) MarshalJSON ¶
func (monitor *URLMonitor) MarshalJSON() ([]byte, error)
func (*URLMonitor) PushStatus ¶
func (monitor *URLMonitor) PushStatus(status bool, ttfb int, code int)
func (*URLMonitor) StatusChanged ¶
func (monitor *URLMonitor) StatusChanged() bool
Click to show internal directories.
Click to hide internal directories.