nezha/model/server.go
2019-12-13 17:56:14 +08:00

19 lines
300 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:"-"`
}