nezha/model/server.go

19 lines
300 B
Go
Raw Normal View History

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