This commit is contained in:
gitGnome
2026-04-14 13:02:01 +02:00
parent c90c13b468
commit 2500418f80
5 changed files with 28 additions and 13 deletions
+10
View File
@@ -2,6 +2,8 @@ package minio
import (
"context"
"go-socket/packages/globals"
"io"
"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
@@ -24,5 +26,13 @@ func MinInit() {
}
if !exists {
err = dbConn.MakeBucket(ctx, globals.FileStorageBucketName, minio.MakeBucketOptions{})
if err != nil {
return
}
}
}
func putFile(ctx context.Context, key string, reader io.Reader, size uint32, contentType string) error {
}