OSDN Git Service

c708129e1dca1f175595c4c256b99760d736349e
[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         ID            uint64 `gorm:"primary_key"`
10         NodeID        uint16
11         PingTimes     uint64
12         PongTimes     uint64
13         AvgLantencyMS sql.NullInt64
14         BestHeight    uint64
15         CreatedAt     time.Time
16         UpdatedAt     time.Time
17
18         Node *Node `gorm:"foreignkey:NodeID"`
19 }