20 lines
		
	
	
		
			471 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			471 B
		
	
	
	
		
			Go
		
	
	
	
| package model
 | |
| 
 | |
| import (
 | |
| 	"time"
 | |
| )
 | |
| 
 | |
| // Client model
 | |
| type Client struct {
 | |
| 	ID				string		`json:"id"`
 | |
| 	PrivateKey		string		`json:"private_key"`
 | |
| 	PublicKey 		string		`json:"pulbic_key"`
 | |
| 	Name			string		`json:"name"`
 | |
| 	Email			string  	`json:"email"`
 | |
| 	AllocatedIPs	[]string  	`json:"allocated_ips"`
 | |
| 	AllowedIPs		[]string  	`json:"allowed_ips"`
 | |
| 	Enabled			bool 		`json:"enabled"`
 | |
| 	CreatedAt       time.Time 	`json:"created_at"`
 | |
| 	UpdatedAt       time.Time 	`json:"updated_at"`
 | |
| }
 |