wireguard

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Device(ctx context.Context, name string) (*backend.Device, error)
	Up(ctx context.Context, options backend.ConfigureOptions) (*backend.Device, error)
	Down(ctx context.Context, name string) error
	Status(ctx context.Context, name string) (bool, error)
	Stats(ctx context.Context, name string) (*backend.InterfaceStats, error)
	PeerStats(ctx context.Context, name string, peerPublicKey string) (*backend.PeerStats, error)
	FindForeignServers(_ context.Context, knownInterfaces []string) ([]*backend.ForeignServer, error)
	Close(ctx context.Context) error
}

func NewService

func NewService(backend backend.Backend) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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