mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-26 10:40:28 -06:00
0c9668f779
Move ffmpeg functions to @shared
20 lines
364 B
TypeScript
20 lines
364 B
TypeScript
import { buildUUID } from '@shared/extra-utils'
|
|
|
|
function generateRunnerRegistrationToken () {
|
|
return 'ptrrt-' + buildUUID()
|
|
}
|
|
|
|
function generateRunnerToken () {
|
|
return 'ptrt-' + buildUUID()
|
|
}
|
|
|
|
function generateRunnerJobToken () {
|
|
return 'ptrjt-' + buildUUID()
|
|
}
|
|
|
|
export {
|
|
generateRunnerRegistrationToken,
|
|
generateRunnerToken,
|
|
generateRunnerJobToken
|
|
}
|