diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-11 16:27:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-13 14:05:49 +0200 |
commit | c48e82b5e0478434de30626d14594a97f2402e7c (patch) | |
tree | a78e5272bd0fe4f5b41831e571e02d05f1515b82 /shared/models/redundancy | |
parent | a651038487faa838bda3ce04695b08bc65baff70 (diff) | |
download | PeerTube-c48e82b5e0478434de30626d14594a97f2402e7c.tar.gz PeerTube-c48e82b5e0478434de30626d14594a97f2402e7c.tar.zst PeerTube-c48e82b5e0478434de30626d14594a97f2402e7c.zip |
Basic video redundancy implementation
Diffstat (limited to 'shared/models/redundancy')
-rw-r--r-- | shared/models/redundancy/index.ts | 1 | ||||
-rw-r--r-- | shared/models/redundancy/videos-redundancy.model.ts | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/shared/models/redundancy/index.ts b/shared/models/redundancy/index.ts new file mode 100644 index 000000000..61bf0fca7 --- /dev/null +++ b/shared/models/redundancy/index.ts | |||
@@ -0,0 +1 @@ | |||
export * from './videos-redundancy.model' | |||
diff --git a/shared/models/redundancy/videos-redundancy.model.ts b/shared/models/redundancy/videos-redundancy.model.ts new file mode 100644 index 000000000..eb84964e0 --- /dev/null +++ b/shared/models/redundancy/videos-redundancy.model.ts | |||
@@ -0,0 +1,6 @@ | |||
1 | export type VideoRedundancyStrategy = 'most-views' | ||
2 | |||
3 | export interface VideosRedundancy { | ||
4 | strategy: VideoRedundancyStrategy | ||
5 | size: number | ||
6 | } | ||