publish-vod/uploaders.go
Knut Ahlers 7ff74d6e1a
Do some refactoring, add limiting of uploaders
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-01 13:03:26 +02:00

20 lines
364 B
Go

package main
import (
"git.luzifer.io/luzifer/publish-vod/pkg/uploader"
"git.luzifer.io/luzifer/publish-vod/pkg/uploader/sftp"
"git.luzifer.io/luzifer/publish-vod/pkg/uploader/youtube"
)
func uploaderByName(name string) uploader.Uploader {
switch name {
case "sftp":
return sftp.New()
case "youtube":
return youtube.New()
default:
return nil
}
}