nezha/model/server.go
2020-10-24 21:29:05 +08:00

22 lines
341 B
Go

package model
import (
"time"
pb "github.com/p14yground/nezha/proto"
)
// Server ..
type Server struct {
Common
Name string
Secret string
Host *Host
State *State
LastActive time.Time
Stream pb.NezhaService_HeartbeatServer `gorm:"-" json:"-"`
StreamClose chan<- error `gorm:"-" json:"-"`
}