]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/redundancy/videos-redundancy.model.ts
Improve redundancy: add 'min_lifetime' configuration
[github/Chocobozzz/PeerTube.git] / shared / models / redundancy / videos-redundancy.model.ts
CommitLineData
3f6b6a56 1export type VideoRedundancyStrategy = 'most-views' | 'trending' | 'recently-added'
c48e82b5 2
3f6b6a56
C
3export type MostViewsRedundancyStrategy = {
4 strategy: 'most-views'
c48e82b5 5 size: number
e5565833 6 minLifetime: number
c48e82b5 7}
3f6b6a56
C
8
9export type TrendingRedundancyStrategy = {
10 strategy: 'trending'
11 size: number
e5565833 12 minLifetime: number
3f6b6a56
C
13}
14
15export type RecentlyAddedStrategy = {
16 strategy: 'recently-added'
17 size: number
18 minViews: number
e5565833 19 minLifetime: number
3f6b6a56
C
20}
21
22export type VideosRedundancy = MostViewsRedundancyStrategy | TrendingRedundancyStrategy | RecentlyAddedStrategy