wg_vpn

package
v1.1.6-nightly Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCmd

func ExecCmd(cmdString string, verbose bool) error

func GeneratePublicKey

func GeneratePublicKey(privateKey string) ([]byte, error)

func GenerateWgKeys

func GenerateWgKeys() ([]byte, []byte, error)

func IsSystemdReslov

func IsSystemdReslov() bool

Types

type WgClient

type WgClient interface {
	StartServiceInBg(devName string, configFolder string) error

	StartService(devName string, verbose bool) error

	StopService(devName string, verbose bool) error

	Configure(configuration []byte, interfaceName string, verbose bool) error

	SetDnsServers(dnsServers []net.IP, devName string, verbose bool) error
	ResetDnsServers(devName string, verbose bool) error

	SetSearchDomain(domain string) error

	ResetSearchDomain() error
	// contains filtered or unexported methods
}

func NewWgClient

func NewWgClient() WgClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL