19 lines
298 B
Go
19 lines
298 B
Go
package model
|
|
|
|
import (
|
|
pb "github.com/p14yground/nezha/proto"
|
|
)
|
|
|
|
// Server ..
|
|
type Server struct {
|
|
Common
|
|
Name string
|
|
Secret string
|
|
|
|
Host Host
|
|
State State
|
|
|
|
Stream pb.NezhaService_HeartbeatServer `gorm:"-" json:"-"`
|
|
StreamClose chan<- error `gorm:"-" json:"-"`
|
|
}
|