wintundll

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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