mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 16:16:37 +08:00
db9a9f98fd
- 新增 internal/apps/edge/,三组件改为薄包装,删除 3000+ 行重复代码 - Agent 心跳周期下沉至 heartbeat/cycle.go - 协议类型迁入 pkg/protocol/agent.go - 补充设计文档与 changelog
17 lines
401 B
Go
17 lines
401 B
Go
package updater
|
|
|
|
import (
|
|
edgeupdater "github.com/Rain-kl/Wavelet/internal/apps/edge/updater"
|
|
"github.com/Rain-kl/Wavelet/internal/apps/agent/config"
|
|
)
|
|
|
|
type Service = edgeupdater.Service
|
|
type UpdateOptions = edgeupdater.UpdateOptions
|
|
|
|
func New() *Service {
|
|
return edgeupdater.New(edgeupdater.Config{
|
|
LocalVersion: config.Version,
|
|
AssetPrefix: "openflare-agent",
|
|
LogLabel: "agent",
|
|
})
|
|
} |