tailnet

package
v2.33.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: AGPL-3.0 Imports: 26 Imported by: 1 module, 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

Index

Constants

View Source
const (
	EventHeartbeats = "tailnet_coordinator_heartbeat"

	HeartbeatPeriod  = time.Second * 2
	MissedHeartbeats = 3

	CloseErrUnhealthy = "coordinator unhealthy"
)

Variables

This section is empty.

Functions

func NewPGCoord

func NewPGCoord(ctx context.Context, logger slog.Logger, ps pubsub.Pubsub, store database.Store) (agpl.Coordinator, error)

NewPGCoord creates a high-availability coordinator that stores state in the PostgreSQL database and receives notifications of updates via the pubsub.

func NewTestPGCoord added in v2.13.0

func NewTestPGCoord(ctx context.Context, logger slog.Logger, ps pubsub.Pubsub, store database.Store, clk quartz.Clock) (agpl.Coordinator, error)

NewTestPGCoord is only used in testing to pass a clock.Clock in.

Types

type ClientService added in v2.7.0

type ClientService struct {
	*agpl.ClientService
}

func NewClientService added in v2.7.0

func NewClientService(options agpl.ClientServiceOptions) (*ClientService, error)

NewClientService returns a ClientService based on the given Coordinator pointer. The pointer is loaded on each processed connection.

func (*ClientService) ServeMultiAgentClient added in v2.7.0

func (s *ClientService) ServeMultiAgentClient(ctx context.Context, version string, conn net.Conn, id uuid.UUID) error

type HTMLCoordinator added in v2.5.0

type HTMLCoordinator struct {
	ID           uuid.UUID
	HeartbeatAge time.Duration
}

type HTMLDebug added in v2.5.0

type HTMLDebug struct {
	Coordinators []*HTMLCoordinator
	Peers        []*HTMLPeer
	Tunnels      []*HTMLTunnel
}

type HTMLPeer added in v2.5.0

type HTMLPeer struct {
	ID            uuid.UUID
	CoordinatorID uuid.UUID
	LastWriteAge  time.Duration
	Node          string
	Status        database.TailnetStatus
}

type HTMLTunnel added in v2.5.0

type HTMLTunnel struct {
	CoordinatorID uuid.UUID
	SrcID         uuid.UUID
	DstID         uuid.UUID
	LastWriteAge  time.Duration
}

Jump to

Keyboard shortcuts

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