summary refs log tree commit diff
path: root/src/util/Storage.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/Storage.ts')
-rw-r--r--src/util/Storage.ts15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/util/Storage.ts b/src/util/Storage.ts
deleted file mode 100644

index f8b09e71..00000000 --- a/src/util/Storage.ts +++ /dev/null
@@ -1,15 +0,0 @@ -import { FileStorage } from "./FileStorage"; - -export interface Storage { - set(path: string, data: Buffer): Promise<void>; - get(path: string): Promise<Buffer | null>; - delete(path: string): Promise<void>; -} - -var storage: Storage; - -if (process.env.STORAGE_PROVIDER === "file") { - storage = new FileStorage(); -} - -export { storage };