25 lines
518 B
Go
25 lines
518 B
Go
package main
|
|
|
|
import (
|
|
imagorvideoextended "git.cef.icu/CEF/imagorextended"
|
|
"github.com/cshum/imagor/config"
|
|
"github.com/cshum/imagor/config/awsconfig"
|
|
"github.com/cshum/imagor/config/gcloudconfig"
|
|
"github.com/cshum/imagor/config/vipsconfig"
|
|
"github.com/cshum/imagorvideo"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
var server = config.CreateServer(
|
|
os.Args[1:],
|
|
imagorvideoextended.Config,
|
|
imagorvideo.Config,
|
|
vipsconfig.WithVips,
|
|
awsconfig.WithAWS,
|
|
gcloudconfig.WithGCloud,
|
|
)
|
|
if server != nil {
|
|
server.Run()
|
|
}
|
|
}
|