nezha/model/server.go
2020-12-07 20:47:13 +08:00

22 lines
347 B
Go

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