mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
Websocket 实时拉取
This commit is contained in:
@@ -10,6 +10,7 @@ type Config struct {
|
||||
Debug bool
|
||||
Site struct {
|
||||
Brand string // 站点名称
|
||||
Domain string // 站点域名
|
||||
CookieName string // 浏览器 Cookie 名称
|
||||
}
|
||||
GitHub struct {
|
||||
|
||||
@@ -68,7 +68,7 @@ type Host struct {
|
||||
Arch string
|
||||
Virtualization string
|
||||
BootTime uint64
|
||||
IP string
|
||||
IP string `json:"-"`
|
||||
CountryCode string
|
||||
Version string
|
||||
}
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
pb "github.com/p14yground/nezha/proto"
|
||||
)
|
||||
|
||||
// Server ..
|
||||
type Server struct {
|
||||
Common
|
||||
@@ -8,4 +12,7 @@ type Server struct {
|
||||
|
||||
Host Host
|
||||
State State
|
||||
|
||||
Stream pb.NezhaService_HeartbeatServer `gorm:"-" json:"-"`
|
||||
StreamClose chan<- error `gorm:"-" json:"-"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user