mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
22 lines
341 B
Go
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:"-"`
|
|
}
|