wireguard-ui/model/client.go

28 lines
700 B
Go
Raw Normal View History

2020-04-18 11:17:49 +02:00
package model
import (
"time"
)
// Client model
type Client struct {
2020-04-25 08:07:05 +02:00
ID string `json:"id"`
PrivateKey string `json:"private_key"`
PublicKey string `json:"public_key"`
PresharedKey string `json:"preshared_key"`
2020-04-25 08:07:05 +02:00
Name string `json:"name"`
Email string `json:"email"`
AllocatedIPs []string `json:"allocated_ips"`
AllowedIPs []string `json:"allowed_ips"`
UseServerDNS bool `json:"use_server_dns"`
2020-04-25 08:07:05 +02:00
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
2020-04-18 11:17:49 +02:00
}
2020-04-18 16:42:53 +02:00
// ClientData includes the Client and extra data
type ClientData struct {
2020-04-25 08:07:05 +02:00
Client *Client
QRCode string
2020-04-18 16:42:53 +02:00
}