mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
🎨 improve offline server detect
This commit is contained in:
@@ -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