Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNetworkInterfaceByName ¶
func GetNetworkInterfaceByName(name string)
GetNetworkInterfaceByName returns details about a single user provided interface
func MaybeSendDiscoveryPacket ¶
func MaybeSendDiscoveryPacket(co ConfigOptions, p vrt.VRT)
MaybeSendDiscoveryPacket regenerates and sends the Discovery Packet if EnableBroadcast is true
func PrintVrtPacket ¶
Types ¶
type ConfigOptions ¶
type NetInteface ¶
type NetInteface struct {
Name string
IPAddress net.IP
MACAddress net.HardwareAddr
}
func ValidateNetworkInterfaceByName ¶
func ValidateNetworkInterfaceByName(name string) (NetInteface, error)
ValidateNetworkInterfaceByName returns details about a single user provided interface
type OpnsenseApi ¶
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func UsersDb ¶
UsersDb creates a sqlite database with a clients table and schema if the file does not already exist
func (*Users) DeleteAllUsers ¶
DeleteAllUsers removes all user records from the db
func (*Users) GetUserIpAddresses ¶
GetUserIpAddresses returns the ip address of every user record in the db
type VpnRouteRow ¶
type VpnRouteRow struct {
VirtualAddress string `json:"virtual_address"`
CommonName string `json:"common_name"`
RealAddress string `json:"real_address"`
LastRef string `json:"last_ref"`
LastRefTime string `json:"last_ref__time_t_"`
Type string `json:"type"`
ID string `json:"id"`
Description string `json:"description"`
}
Click to show internal directories.
Click to hide internal directories.