tsserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: CC0-1.0 Imports: 35 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tsserver implements the Tailscale coordination protocol for a single client. Heavy inspiration was taken from https://github.com/juanfont/headscale

Index

Constants

View Source
const NoiseCapabilityVersion = 39

Variables

View Source
var ErrNoCapabilityVersion = errors.New("no capability version set")

Functions

func DERPMapTailscale

func DERPMapTailscale(ctx context.Context) (*tailcfg.DERPMap, error)

func IP

func IP() netip.Addr

IP generates a random IP with a static service prefix.

func IPFromUUID

func IPFromUUID(uid uuid.UUID) netip.Addr

IP generates a new IP from a UUID.

func NewServer

func NewServer(ctx context.Context, logger *slog.Logger, ov overlay.Overlay) (*server, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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