aboutsummaryrefslogtreecommitdiff
path: root/api/client.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-03-29 00:07:03 +0200
committerJulien Dessaux2021-03-29 00:07:03 +0200
commitdbb4167a49343defa8be01921c3943d7eeb8b9dd (patch)
treeb5eb69c6d4edc46bf6dc851493c6fb957bcecfa2 /api/client.go
parentMoved api test files into their own folder (diff)
downloadtrains-dbb4167a49343defa8be01921c3943d7eeb8b9dd.tar.gz
trains-dbb4167a49343defa8be01921c3943d7eeb8b9dd.tar.bz2
trains-dbb4167a49343defa8be01921c3943d7eeb8b9dd.zip
Renamed the api folder to something more specific
Diffstat (limited to 'api/client.go')
-rw-r--r--api/client.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/api/client.go b/api/client.go
deleted file mode 100644
index 79c8314..0000000
--- a/api/client.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package api
-
-import (
- "fmt"
- "net/http"
- "time"
-)
-
-type Client struct {
- baseURL string
- httpClient *http.Client
-}
-
-func NewClient(token string) *Client {
- return &Client{
- baseURL: fmt.Sprintf("https://%s@api.sncf.com/v1", token),
- httpClient: &http.Client{
- Timeout: time.Minute,
- },
- }
-}