mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-19 19:59:13 +03:00
20 lines
429 B
Go
20 lines
429 B
Go
package model
|
|
|
|
// Interface model
|
|
type Interface struct {
|
|
Name string `json:"name"`
|
|
IPAddress string `json:"ip_address"`
|
|
}
|
|
|
|
// BaseData struct to pass value to the base template
|
|
type BaseData struct {
|
|
Active string
|
|
CurrentUser string
|
|
Admin bool
|
|
}
|
|
|
|
// ClientServerHashes struct, to save hashes to detect changes
|
|
type ClientServerHashes struct {
|
|
Client string `json:"client"`
|
|
Server string `json:"server"`
|
|
}
|