Documentation ¶
Index ¶
Constants ¶
View Source
const (
DEF_CONF_FOLDER string = "/etc/wireguard"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WgRawClient ¶
type WgRawClient struct {
base_client.WGClient
}
func NewClient ¶
func NewClient(cli *base_client.WGClient) *WgRawClient
func (*WgRawClient) CheckInterface ¶
func (c *WgRawClient) CheckInterface(iface string) error
func (*WgRawClient) Close ¶
func (c *WgRawClient) Close(iface string) error
func (*WgRawClient) CloseAll ¶
func (c *WgRawClient) CloseAll() error
func (*WgRawClient) UpdateConfig ¶
func (c *WgRawClient) UpdateConfig(iface string, replacePeers bool) error
type WireGuardConfig ¶
type WireGuardConfig struct { Interface wgInterfaceCfg `ini:"Interface"` Peer []wgPeerCfg `ini:"Peer"` }
Click to show internal directories.
Click to hide internal directories.