Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeItString ¶
Types ¶
type IpGeoAddress ¶
type IpGeoAddress struct {
IpInfoIP string
IpInfoCity string
IpInfoCountry string
IpInfoLocation string
IpInfoOrg string
IpInfoPostal string
IpInfoTimezone string
}
func GetIpData ¶
func GetIpData() IpGeoAddress
type NodeStatus ¶
type NodeStatus struct {
PeerId string `json:"peerId" gorm:"primaryKey"`
Name string `json:"name"`
HttpPort string `json:"httpPort"`
Host string `json:"host"` //domain
PeerAddress string `json:"peerAddress"`
Region string `json:"region"`
Status string `json:"status"` // offline 1, online 2, maintainance 3,block 4
DownloadSpeed float64 `json:"downloadSpeed"`
UploadSpeed float64 `json:"uploadSpeed"`
RegistrationTime int64 `json:"registrationTime"` //StartTimeStamp
LastPing int64 `json:"lastPing"`
Chain string `json:"chainName"`
WalletAddress string `json:"walletAddress"`
Version string `json:"version"`
CodeHash string `json:"codeHash"`
SystemInfo string `json:"systemInfo" gorm:"type:jsonb"`
IpInfo string `json:"ipinfo" gorm:"type:jsonb"`
IpGeoData string `json:"ipGeoData" gorm:"type:jsonb"`
NodeAccess string `json:"nodeAccess"`
NodeConfig string `json:"nodeConfig"`
}
func CreateNodeStatus ¶
func CreateNodeStatus(address string, id string, startTimeStamp int64, name string) *NodeStatus
Click to show internal directories.
Click to hide internal directories.