Websocket 实时拉取

This commit is contained in:
奶爸
2019-12-10 17:57:57 +08:00
parent be57af065d
commit 3c39e1537d
11 changed files with 197 additions and 32 deletions

View File

@@ -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:"-"`
}