Documentation
¶
Index ¶
- Constants
- func CoordinatorHTTPDebug(data HTMLDebugHA) func(w http.ResponseWriter, _ *http.Request)
- func NewCoordinator(logger slog.Logger, ps pubsub.Pubsub) (agpl.Coordinator, error)
- func NewPGCoord(ctx context.Context, logger slog.Logger, ps pubsub.Pubsub, ...) (agpl.Coordinator, error)
- func NewPGCoordV2(ctx context.Context, logger slog.Logger, ps pubsub.Pubsub, ...) (agpl.CoordinatorV2, error)
- func ServeWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentConn) error
- type HTMLAgent
- type HTMLClient
- type HTMLCoordinator
- type HTMLDebug
- type HTMLDebugHA
- type HTMLNode
- type HTMLPeer
- type HTMLTunnel
Constants ¶
View Source
const ( EventHeartbeats = "tailnet_coordinator_heartbeat" HeartbeatPeriod = time.Second * 2 MissedHeartbeats = 3 )
Variables ¶
This section is empty.
Functions ¶
func CoordinatorHTTPDebug ¶ added in v2.5.0
func CoordinatorHTTPDebug(data HTMLDebugHA) func(w http.ResponseWriter, _ *http.Request)
func NewCoordinator ¶
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 NewPGCoordV2 ¶ added in v2.5.0
func NewPGCoordV2(ctx context.Context, logger slog.Logger, ps pubsub.Pubsub, store database.Store) (agpl.CoordinatorV2, error)
NewPGCoordV2 creates a high-availability coordinator that stores state in the PostgreSQL database and receives notifications of updates via the pubsub.
func ServeWorkspaceProxy ¶
Types ¶
type HTMLClient ¶ added in v2.5.0
type HTMLCoordinator ¶ added in v2.5.0
type HTMLDebug ¶ added in v2.5.0
type HTMLDebug struct { Coordinators []*HTMLCoordinator Peers []*HTMLPeer Tunnels []*HTMLTunnel }
type HTMLDebugHA ¶ added in v2.5.0
Click to show internal directories.
Click to hide internal directories.