server

package
v0.4.118 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opt Options) (err error)

Types

type Options

type Options struct {
	Socket           string
	Logger           *log.Logger
	Background       bool
	ConfigFile       string
	ConfigWebsockets bool

	// TokenMode makes the agent build tunnels by authenticating to
	// TokenGateway with the session's macaroons instead of registering
	// peers through the API. It's the local config's say: the
	// wireguard-token-mode feature flag, evaluated for the user each time a
	// tunnel is built, can turn token mode on for a user whose local config
	// has it off (see server.tokenModeFor).
	TokenMode    bool
	TokenGateway string
}

Jump to

Keyboard shortcuts

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