mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-19 06:43:42 +00:00
feat(extension): add host environment and WebView page events (#1527)
This commit is contained in:
31 files changed
+1480
-184
No files matched your search
@@ -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,
|
||||
}}
|
||||
}
|
||||
Reference in new issue
Block a user