Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ensure ¶
func Ensure(opts ...EnsureOption) error
Ensure ensures the presence of the wintun dll in the system. It returns an incompatibility error on non-windows.
Types ¶
type EnsureOption ¶
type EnsureOption func(*configuration)
EnsureOption represents a configuration option for the Ensure function in this package.
func WithDllPathInUnzippedDir ¶ added in v0.0.3
func WithDllPathInUnzippedDir(path string) EnsureOption
WithDllPathInUnzippedDir returns an EnsureOption to set a non-default value for the location of the dll file in the unzipped downloaded folder.
func WithDllPathToEnsure ¶ added in v0.0.3
func WithDllPathToEnsure(path string) EnsureOption
WithDllPathToEnsure returns an EnsureOption to set a non-default value for the location where to ensure the dll file.
func WithDownloadTimeout ¶
func WithDownloadTimeout(timeout time.Duration) EnsureOption
WithDownloadTimeout returns an EnsureOption to set a non-default value for the download tiemout.
func WithDownloadURL ¶
func WithDownloadURL(url string) EnsureOption
WithDownloadURL returns an EnsureOption to set a non-default value for the download url.
Click to show internal directories.
Click to hide internal directories.