WIP
This commit is contained in:
13
m/models.go
13
m/models.go
@@ -6,7 +6,7 @@ type PeerConfig struct {
|
||||
HubAddress string
|
||||
Network []byte
|
||||
APIKey string
|
||||
IP []byte
|
||||
PublicIP []byte
|
||||
Port uint16
|
||||
Mediator bool
|
||||
EncPubKey []byte
|
||||
@@ -17,8 +17,9 @@ type PeerConfig struct {
|
||||
|
||||
type Peer struct {
|
||||
PeerIP byte
|
||||
Version int64
|
||||
Name string
|
||||
IP []byte
|
||||
PublicIP []byte
|
||||
Port uint16
|
||||
Mediator bool
|
||||
EncPubKey []byte
|
||||
@@ -29,10 +30,10 @@ type NetworkState struct {
|
||||
HubAddress string
|
||||
|
||||
// The requester's data:
|
||||
Network []byte
|
||||
PeerIP byte
|
||||
IP []byte
|
||||
Port uint16
|
||||
Network []byte
|
||||
PeerIP byte
|
||||
PublicIP []byte
|
||||
Port uint16
|
||||
|
||||
// All peer data.
|
||||
Peers [256]*Peer
|
||||
|
||||
Reference in New Issue
Block a user