diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-18 16:43:41 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 32fe00138990627749da58ff9f845584013aa219 (patch) | |
tree | 3b9cc791614e87cf07bb62c8ef7a40690580ac39 /shared | |
parent | 60cfd4cb54138e7da76054aa163b33b3223b17ef (diff) | |
download | PeerTube-32fe00138990627749da58ff9f845584013aa219.tar.gz PeerTube-32fe00138990627749da58ff9f845584013aa219.tar.zst PeerTube-32fe00138990627749da58ff9f845584013aa219.zip |
Provide logger to plugins
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/plugins/plugin-library.model.ts | 7 | ||||
-rw-r--r-- | shared/models/plugins/register-options.model.ts | 14 |
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 @@ | |||
1 | import { RegisterOptions } from './register-options.model' | ||
2 | |||
3 | export 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 @@ | |||
1 | import { RegisterHookOptions } from './register-hook.model' | ||
2 | import { RegisterSettingOptions } from './register-setting.model' | ||
3 | import { PluginSettingsManager } from './plugin-settings-manager.model' | ||
4 | import { PluginStorageManager } from './plugin-storage-manager.model' | ||
5 | |||
6 | export type RegisterOptions = { | ||
7 | registerHook: (options: RegisterHookOptions) => void | ||
8 | |||
9 | registerSetting: (options: RegisterSettingOptions) => void | ||
10 | |||
11 | settingsManager: PluginSettingsManager | ||
12 | |||
13 | storageManager: PluginStorageManager | ||
14 | } | ||