mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
24 lines
444 B
Go
24 lines
444 B
Go
package main
|
|
|
|
import (
|
|
"github.com/GopeedLab/gopeed/cmd"
|
|
"github.com/GopeedLab/gopeed/pkg/api/model"
|
|
"github.com/GopeedLab/gopeed/pkg/base"
|
|
)
|
|
|
|
// only for local development
|
|
func main() {
|
|
cfg := &model.StartConfig{
|
|
Storage: model.StorageBolt,
|
|
DownloadConfig: &base.DownloaderStoreConfig{
|
|
Http: &base.DownloaderHttpConfig{
|
|
Enable: true,
|
|
Host: "127.0.0.1",
|
|
Port: 9999,
|
|
},
|
|
},
|
|
WebEnable: true,
|
|
}
|
|
cmd.Start(cfg)
|
|
}
|