22 lines
		
	
	
		
			447 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			447 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package models
 | |
| 
 | |
| import (
 | |
| 	"net"
 | |
| )
 | |
| 
 | |
| type HMNetInfo struct {
 | |
| 	IP     net.IP `json:"ip"`
 | |
| 	WebURL string `json:"web_url,omitempty"`
 | |
| 	SSH    struct {
 | |
| 		User    string `json:"user"`
 | |
| 		PrivKey string `json:"privkey"`
 | |
| 		Port    int    `json:"port"`
 | |
| 	} `json:"ssh,omitempty"`
 | |
| }
 | |
| 
 | |
| // HMMap handles all the informations of your home server instances.
 | |
| type HMMap struct {
 | |
| 	Nginx *HMNetInfo `json:"nginx,omitempty"`
 | |
| 	Swarm *HMNetInfo `json:"swarm,omitempty"`
 | |
| }
 | 
