实现缓存策略的部分功能

This commit is contained in:
GoEdgeLab
2020-10-04 14:27:14 +08:00
parent 9f4119b892
commit 9f8c705d12
13 changed files with 762 additions and 197 deletions

View File

@@ -1,9 +1,9 @@
package main
import (
"github.com/TeaOSLab/EdgeAPI/internal/apis"
"github.com/TeaOSLab/EdgeAPI/internal/apps"
teaconst "github.com/TeaOSLab/EdgeAPI/internal/const"
"github.com/TeaOSLab/EdgeAPI/internal/nodes"
_ "github.com/TeaOSLab/EdgeAPI/internal/tasks"
_ "github.com/iwind/TeaGo/bootstrap"
)
@@ -14,6 +14,6 @@ func main() {
app.Product(teaconst.ProductName)
app.Usage(teaconst.ProcessName + " [start|stop|restart]")
app.Run(func() {
apis.NewAPINode().Start()
nodes.NewAPINode().Start()
})
}