OSDN Git Service

Merge remote-tracking branch 'origin/master' into precogs/init
[bytom/vapor.git] / toolbar / precog / database / orm / node_liveness.go
1 package orm
2
3 import (
4         "database/sql"
5         "time"
6 )
7
8 type NodeLiveness struct {
9         NodeID        uint16
10         PingTimes     uint64
11         PongTimes     uint64
12         AvgLantencyMS sql.NullInt64
13         Status        uint8
14         CreatedAt     time.Time
15         UpdatedAt     time.Time
16
17         Node *Node `gorm:"foreignkey:NodeID"`
18 }