wireguard-ui/model/misc.go

21 lines
429 B
Go
Raw Permalink Normal View History

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
2023-03-15 21:13:53 +01:00
Admin bool
}
// ClientServerHashes struct, to save hashes to detect changes
type ClientServerHashes struct {
Client string `json:"client"`
Server string `json:"server"`
}