OSDN Git Service

add
[bytom/vapor.git] / toolbar / precog / database / orm / node.go
1 package orm
2
3 import (
4         "database/sql"
5
6         "time"
7 )
8
9 // TODO: json
10 type Node struct {
11         Alias      string        `json:"alias"`
12         PubKey     chainkd.XPub  `json:"pubkey"`
13         Host       string        `json:"host"`
14         Port       uint16        `json:"port"`
15         BestHeight uint64        `json:"best_height"`
16         LantencyMS sql.NullInt64 `json:"lantency_ms"`
17         Status     uint8         `json:"status"`
18         CreatedAt  time.Time
19         UpdatedAt  time.Time
20 }