Documentation
¶
Index ¶
- Constants
- func NewPGCoord(ctx context.Context, logger slog.Logger, ps pubsub.Pubsub, ...) (agpl.Coordinator, error)
- func NewTestPGCoord(ctx context.Context, logger slog.Logger, ps pubsub.Pubsub, ...) (agpl.Coordinator, error)
- func ServeWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentConn) error
- type ClientService
- type HTMLCoordinator
- type HTMLDebug
- 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 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.
func ServeWorkspaceProxy ¶
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.
type HTMLCoordinator ¶ added in v2.5.0
type HTMLDebug ¶ added in v2.5.0
type HTMLDebug struct { Coordinators []*HTMLCoordinator Peers []*HTMLPeer Tunnels []*HTMLTunnel }
Click to show internal directories.
Click to hide internal directories.