renamed some structs to make the private

This commit is contained in:
2025-11-20 15:44:28 +01:00
parent 34f55eccf0
commit 0e47fb6983
5 changed files with 15 additions and 15 deletions

View File

@@ -41,18 +41,18 @@ type assetBulkUploadCheckResult struct {
Reason string // can be "duplicate" or "unsupportedFormat" (i don't know what they mean by this)
}
type APIKeyTransport struct {
type apiKeyTransport struct {
APIKey string
}
func (t *APIKeyTransport) RoundTrip(req *http.Request) (*http.Response, error) {
func (t *apiKeyTransport) RoundTrip(req *http.Request) (*http.Response, error) {
req = req.Clone(req.Context())
req.Header.Add("x-api-key", t.APIKey)
return http.DefaultTransport.RoundTrip(req)
}
func newImmichHttpClient(apiKey string) http.Client {
transport := APIKeyTransport{
transport := apiKeyTransport{
APIKey: apiKey,
}