mirror of
https://github.com/h44z/wg-portal.git
synced 2025-06-28 01:07:03 +00:00
25 lines
525 B
Go
25 lines
525 B
Go
|
package domain
|
||
|
|
||
|
// ControllerType defines the type of controller used to manage interfaces.
|
||
|
|
||
|
const (
|
||
|
ControllerTypeMikrotik = "mikrotik"
|
||
|
ControllerTypeLocal = "wgctrl"
|
||
|
)
|
||
|
|
||
|
// Controller extras can be used to store additional information available for specific controllers only.
|
||
|
|
||
|
type MikrotikInterfaceExtras struct {
|
||
|
Comment string
|
||
|
Disabled bool
|
||
|
}
|
||
|
|
||
|
type MikrotikPeerExtras struct {
|
||
|
Name string
|
||
|
Comment string
|
||
|
IsResponder bool
|
||
|
ClientEndpoint string
|
||
|
ClientAddress string
|
||
|
Disabled bool
|
||
|
}
|