aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-18 16:43:41 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit32fe00138990627749da58ff9f845584013aa219 (patch)
tree3b9cc791614e87cf07bb62c8ef7a40690580ac39 /shared/models/plugins
parent60cfd4cb54138e7da76054aa163b33b3223b17ef (diff)
downloadPeerTube-32fe00138990627749da58ff9f845584013aa219.tar.gz
PeerTube-32fe00138990627749da58ff9f845584013aa219.tar.zst
PeerTube-32fe00138990627749da58ff9f845584013aa219.zip
Provide logger to plugins
Diffstat (limited to 'shared/models/plugins')
-rw-r--r--shared/models/plugins/plugin-library.model.ts7
-rw-r--r--shared/models/plugins/register-options.model.ts14
2 files changed, 0 insertions, 21 deletions
diff --git a/shared/models/plugins/plugin-library.model.ts b/shared/models/plugins/plugin-library.model.ts
deleted file mode 100644
index fd90a3b46..000000000
--- a/shared/models/plugins/plugin-library.model.ts
+++ /dev/null
@@ -1,7 +0,0 @@
1import { RegisterOptions } from './register-options.model'
2
3export interface PluginLibrary {
4 register: (options: RegisterOptions) => Promise<any>
5
6 unregister: () => Promise<any>
7}
diff --git a/shared/models/plugins/register-options.model.ts b/shared/models/plugins/register-options.model.ts
deleted file mode 100644
index e3a7cff08..000000000
--- a/shared/models/plugins/register-options.model.ts
+++ /dev/null
@@ -1,14 +0,0 @@
1import { RegisterHookOptions } from './register-hook.model'
2import { RegisterSettingOptions } from './register-setting.model'
3import { PluginSettingsManager } from './plugin-settings-manager.model'
4import { PluginStorageManager } from './plugin-storage-manager.model'
5
6export type RegisterOptions = {
7 registerHook: (options: RegisterHookOptions) => void
8
9 registerSetting: (options: RegisterSettingOptions) => void
10
11 settingsManager: PluginSettingsManager
12
13 storageManager: PluginStorageManager
14}