nezha/model/server.go

19 lines
300 B
Go
Raw Normal View History

2019-12-08 23:18:29 +08:00
package model
2019-12-10 17:57:57 +08:00
import (
pb "github.com/p14yground/nezha/proto"
)
2019-12-08 23:18:29 +08:00
// Server ..
type Server struct {
Common
Name string
Secret string
2019-12-09 18:14:31 +08:00
2019-12-13 17:56:14 +08:00
Host *Host
State *State
2019-12-10 17:57:57 +08:00
Stream pb.NezhaService_HeartbeatServer `gorm:"-" json:"-"`
StreamClose chan<- error `gorm:"-" json:"-"`
2019-12-08 23:18:29 +08:00
}