types
This commit is contained in:
		
							parent
							
								
									ad8088f1c1
								
							
						
					
					
						commit
						1c1f556e24
					
				
							
								
								
									
										36
									
								
								types.go
									
									
									
									
									
								
							
							
						
						
									
										36
									
								
								types.go
									
									
									
									
									
								
							@ -97,34 +97,34 @@ type link struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type node struct {
 | 
			
		||||
	Firstseen      string  `json:"firstseen,omitempty"`
 | 
			
		||||
	Lastseen       string  `json:"lastseen,omitempty"`
 | 
			
		||||
	IsOnline       bool    `json:"is_online,omitempty"`
 | 
			
		||||
	Firstseen      string  `json:"firstseen"`
 | 
			
		||||
	Lastseen       string  `json:"lastseen"`
 | 
			
		||||
	IsOnline       bool    `json:"is_online"`
 | 
			
		||||
	IsGateway      bool    `json:"is_gateway,omitempty"`
 | 
			
		||||
	Clients        int     `json:"clients,omitempty"`
 | 
			
		||||
	ClientsWifi24  int     `json:"clients_wifi24,omitempty"`
 | 
			
		||||
	ClientsWifi5   int     `json:"clients_wifi5,omitempty"`
 | 
			
		||||
	ClientsOther   int     `json:"clients_other,omitempty"`
 | 
			
		||||
	Clients        int     `json:"clients"`
 | 
			
		||||
	ClientsWifi24  int     `json:"clients_wifi24"`
 | 
			
		||||
	ClientsWifi5   int     `json:"clients_wifi5"`
 | 
			
		||||
	ClientsOther   int     `json:"clients_other"`
 | 
			
		||||
	RootFSUsage    int     `json:"rootfs_usage,omitempty"`
 | 
			
		||||
	LoadAVG        float64 `json:"loadavg,omitempty"`
 | 
			
		||||
	MemoryUsage    float64 `json:"memory_usage,omitempty"`
 | 
			
		||||
	Uptime         string  `json:"uptime,omitempty"`
 | 
			
		||||
	GatewayNexthop string  `json:"gateway_nexthop,omitempty"`
 | 
			
		||||
	Gateway        string  `json:"gateway,omitempty"`
 | 
			
		||||
	Uptime         string  `json:"uptime"`
 | 
			
		||||
	GatewayNexthop string  `json:"gateway_nexthop"`
 | 
			
		||||
	Gateway        string  `json:"gateway"`
 | 
			
		||||
	Location       *struct {
 | 
			
		||||
		Longitude float64 `json:"longitude"`
 | 
			
		||||
		Latitude  float64 `json:"latitude"`
 | 
			
		||||
	} `json:"location,omitempty"`
 | 
			
		||||
	NodeID      string      `json:"node_id,omitempty"`
 | 
			
		||||
	MAC         string      `json:"mac,omitempty"`
 | 
			
		||||
	Adresses    []string    `json:"addresses,omitempty"`
 | 
			
		||||
	Domain      string      `json:"domain,omitempty"`
 | 
			
		||||
	Hostname    string      `json:"hostname,omitempty"`
 | 
			
		||||
	Owner       string      `json:"owner,omitempty"`
 | 
			
		||||
	NodeID      string      `json:"node_id"`
 | 
			
		||||
	MAC         string      `json:"mac"`
 | 
			
		||||
	Adresses    []string    `json:"addresses"`
 | 
			
		||||
	Domain      string      `json:"domain"`
 | 
			
		||||
	Hostname    string      `json:"hostname"`
 | 
			
		||||
	Owner       string      `json:"owner"`
 | 
			
		||||
	Firmware    firmware    `json:"firmware"`
 | 
			
		||||
	Autoupdater autoupdater `json:"autoupdater"`
 | 
			
		||||
	NProc       int         `json:"nproc,omitempty"`
 | 
			
		||||
	Model       string      `json:"model,omitempty"`
 | 
			
		||||
	NProc       int         `json:"nproc"`
 | 
			
		||||
	Model       string      `json:"model"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type firmware struct {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user