mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-19 19:59:13 +03:00
Format code
This commit is contained in:
parent
211304173d
commit
6f0d7bf69f
1 changed files with 12 additions and 12 deletions
|
@ -6,20 +6,20 @@ import (
|
||||||
|
|
||||||
// Client model
|
// Client model
|
||||||
type Client struct {
|
type Client struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
PrivateKey string `json:"private_key"`
|
PrivateKey string `json:"private_key"`
|
||||||
PublicKey string `json:"pulbic_key"`
|
PublicKey string `json:"pulbic_key"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Email string `json:"email"`
|
Email string `json:"email"`
|
||||||
AllocatedIPs []string `json:"allocated_ips"`
|
AllocatedIPs []string `json:"allocated_ips"`
|
||||||
AllowedIPs []string `json:"allowed_ips"`
|
AllowedIPs []string `json:"allowed_ips"`
|
||||||
Enabled bool `json:"enabled"`
|
Enabled bool `json:"enabled"`
|
||||||
CreatedAt time.Time `json:"created_at"`
|
CreatedAt time.Time `json:"created_at"`
|
||||||
UpdatedAt time.Time `json:"updated_at"`
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ClientData includes the Client and extra data
|
// ClientData includes the Client and extra data
|
||||||
type ClientData struct {
|
type ClientData struct {
|
||||||
Client *Client
|
Client *Client
|
||||||
QRCode string
|
QRCode string
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue