feat: add blob store Initialize method

This commit is contained in:
2025-11-29 18:39:21 +00:00
parent ab4c14bc09
commit 42b805fbd1
3 changed files with 11 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package drexa
import (
"context"
"fmt"
"github.com/get-drexa/drexa/internal/auth"
@@ -29,6 +30,11 @@ func NewServer(c Config) (*fiber.App, error) {
return nil, fmt.Errorf("unknown storage backend: %s", c.Storage.Backend)
}
err := blobStore.Initialize(context.Background())
if err != nil {
return nil, fmt.Errorf("failed to initialize blob store: %w", err)
}
// Initialize key resolver based on config
var keyResolver virtualfs.BlobKeyResolver
switch c.Storage.Mode {