github.com/mundipagg/boleto-api@v0.0.0-20230620145841-3f9ec742599f/infrastructure/storage/storage.go (about) 1 package storage 2 3 import ( 4 "context" 5 6 "github.com/mundipagg/boleto-api/config" 7 ) 8 9 type IStorage interface { 10 UploadAsJson(ctx context.Context, fullpath, payload string) (totalElapsedTimeInMilliseconds int64, err error) 11 } 12 13 // GetClient factory storage 14 func GetClient() (IStorage, error) { 15 return NewAzureBlob( 16 config.Get().AzureStorageAccount, 17 config.Get().AzureStorageAccessKey, 18 config.Get().AzureStorageContainerName, 19 config.Get().DevMode, 20 ) 21 }