mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-03-22 02:51:50 +00:00
🎨 improve offline server detect
This commit is contained in:
@@ -12,7 +12,6 @@ type Config struct {
|
||||
Debug bool
|
||||
Site struct {
|
||||
Brand string // 站点名称
|
||||
Domain string // 站点域名
|
||||
CookieName string // 浏览器 Cookie 名称
|
||||
}
|
||||
GitHub struct {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
pb "github.com/p14yground/nezha/proto"
|
||||
)
|
||||
|
||||
@@ -10,8 +12,9 @@ type Server struct {
|
||||
Name string
|
||||
Secret string
|
||||
|
||||
Host *Host
|
||||
State *State
|
||||
Host *Host
|
||||
State *State
|
||||
LastActive time.Time
|
||||
|
||||
Stream pb.NezhaService_HeartbeatServer `gorm:"-" json:"-"`
|
||||
StreamClose chan<- error `gorm:"-" json:"-"`
|
||||
|
||||
Reference in New Issue
Block a user