Open F1 API calls

This commit is contained in:
amantahiliani committed 2026-03-03 00:20:09 -05:00
commit cc44f96127
7 files changed
+835

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
package api
import (
"net/http"
"time"
)
type OpenF1Client struct {
url string
httpClient *http.Client
}
func NewOpenF1Client(url string, timeout time.Duration) *OpenF1Client {
return &OpenF1Client{
url: url,
httpClient: &http.Client{Timeout: timeout},
}
}