publish-vod/uploaders.go

21 lines
364 B
Go
Raw Normal View History

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
}
}