Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyRunning = errors.New("xray is already running")
Functions ¶
Types ¶
type PingBatchItem ¶ added in v1.260728.0
type PingBatchResult ¶ added in v1.260728.0
func PingBatch ¶ added in v1.260728.0
func PingBatch( items []PingBatchItem, timeout int, targetURL string, ) ([]PingBatchResult, error)
Example ¶
results, _ := PingBatch(
[]PingBatchItem{{XrayJSON: `{"outbounds":[{"protocol":"freedom"}]}`}},
5,
"https://cp.cloudflare.com/",
)
fmt.Println(len(results))
Click to show internal directories.
Click to hide internal directories.