feat(extension): add host environment and WebView page events (#1527)

This commit is contained in:
Levi authored and GitHub committed 2026-09-18 23:21:53 +08:00
1 parent 5d8267fa56
commit 49aab4ea7c
31 files changed
+1480 -184

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
package download
import (
"runtime"
"github.com/GopeedLab/gopeed/pkg/base"
)
type InstanceHost struct {
Env HostEnv `json:"env"`
}
type HostEnv struct {
Version string `json:"version"`
OS string `json:"os"`
Arch string `json:"arch"`
}
func newInstanceHost() *InstanceHost {
return &InstanceHost{Env: HostEnv{
Version: base.Version,
OS: runtime.GOOS,
Arch: runtime.GOARCH,
}}
}