gatus/client/client.go

20 lines
213 B
Go
Raw Normal View History

package client
import (
"net/http"
"time"
)
var (
client *http.Client
)
func GetHttpClient() *http.Client {
if client == nil {
client = &http.Client{
Timeout: time.Second * 10,
}
}
return client
}