feat: imagorvideo init
This commit is contained in:
commit
2451fa1b5a
20 changed files with 2601 additions and 0 deletions
23
cmd/imagorvideo/main.go
Normal file
23
cmd/imagorvideo/main.go
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"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:],
|
||||
imagorvideo.Config,
|
||||
vipsconfig.WithVips,
|
||||
awsconfig.WithAWS,
|
||||
gcloudconfig.WithGCloud,
|
||||
)
|
||||
if server != nil {
|
||||
server.Run()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue