From 469f7c0458c688e19328edc099266c250373ea04 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Thu, 22 Aug 2024 13:29:28 -0400 Subject: [PATCH] merge: mediaclient dans media.go --- media/media.go => media.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename media/media.go => media.go (98%) diff --git a/media/media.go b/media.go similarity index 98% rename from media/media.go rename to media.go index f023612..f4a8335 100644 --- a/media/media.go +++ b/media.go @@ -1,4 +1,4 @@ -package media +package main import ( "context" @@ -8,7 +8,6 @@ import ( "mime/multipart" "net/http" - "git.agecem.com/agecem/agecem-org/config" "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" "github.com/spf13/viper" @@ -37,7 +36,7 @@ func NewMediaClient(endpoint, accessKeyId, secretAccessKey string, useSSL bool) } func NewMediaClientFromViper() (*MediaClient, error) { - var cfg config.Config + var cfg Config if err := viper.Unmarshal(&cfg); err != nil { return nil, err } @@ -55,7 +54,7 @@ type MediaClient struct { } func (m *MediaClient) Seed() ([]string, error) { - var cfg config.Config + var cfg Config if err := viper.Unmarshal(&cfg); err != nil { return nil, err }