tailnet

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 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
)

Variables

This section is empty.

Functions

func NewCoordinator

func NewCoordinator(logger slog.Logger, ps pubsub.Pubsub) (agpl.Coordinator, error)

NewCoordinator creates a new high availability coordinator that uses PostgreSQL pubsub to exchange handshakes.

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 ServeWorkspaceProxy

func ServeWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentConn) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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