2024-03-27 14:20:45 +00:00
|
|
|
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":
|
2024-04-01 11:02:07 +00:00
|
|
|
return sftp.New()
|
2024-03-27 14:20:45 +00:00
|
|
|
|
|
|
|
case "youtube":
|
2024-04-01 11:02:07 +00:00
|
|
|
return youtube.New()
|
2024-03-27 14:20:45 +00:00
|
|
|
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|