radar

package
v0.0.0-...-5302f52 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Datacenter

type Datacenter string
const (
	Datacenter_MCI         Datacenter = "mci"
	Datacenter_Irancell    Datacenter = "irancell"
	Datacenter_Tehran2     Datacenter = "tehran-2"
	Datacenter_Tehran3     Datacenter = "tehran-3"
	Datacenter_Hostiran    Datacenter = "hostiran"
	Datacenter_Parsonline  Datacenter = "parsonline"
	Datacenter_Afranet     Datacenter = "afranet"
	Datacenter_BertinaXrx  Datacenter = "bertina-xrx"
	Datacenter_BertinaThr  Datacenter = "bertina-thr"
	Datacenter_AjkAbrbaran Datacenter = "ajk-abrbaran"
	Datacenter_Amin        Datacenter = "amin"
)

type Service

type Service string
const (
	Service_Google      Service = "google"
	Service_Github      Service = "github"
	Service_Wikipedia   Service = "wikipedia"
	Service_Playstation Service = "playstation"
	Service_Bing        Service = "bing"
	Service_Digikala    Service = "digikala"
	Service_Divar       Service = "divar"
	Service_Aparat      Service = "aparat"
)

func ParseService

func ParseService(s string) (Service, bool)

type ServiceStatistics

type ServiceStatistics struct {
	Service    Service
	Statistics []float64
}

func CheckDatacenterServiceStatistics

func CheckDatacenterServiceStatistics(datacenter Datacenter, service Service) (*ServiceStatistics, error)

CheckDatacenterServiceStatistics fetches the latest monitoring value for the given datacenter and service.

func (*ServiceStatistics) IsAccessibleNow

func (ss *ServiceStatistics) IsAccessibleNow() bool

Jump to

Keyboard shortcuts

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