Movatterモバイル変換


[0]ホーム

URL:


tailnet

package
v2.23.0Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:25Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

View Source
const (EventHeartbeats = "tailnet_coordinator_heartbeat"HeartbeatPeriod  =time.Second * 2MissedHeartbeats = 3CloseErrUnhealthy = "coordinator unhealthy")

Variables

This section is empty.

Functions

funcNewPGCoord

func NewPGCoord(ctxcontext.Context, loggerslog.Logger, pspubsub.Pubsub, storedatabase.Store) (agpl.Coordinator,error)

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

funcNewTestPGCoordadded inv2.13.0

func NewTestPGCoord(ctxcontext.Context, loggerslog.Logger, pspubsub.Pubsub, storedatabase.Store, clkquartz.Clock) (agpl.Coordinator,error)

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

Types

typeClientServiceadded inv2.7.0

type ClientService struct {*agpl.ClientService}

funcNewClientServiceadded inv2.7.0

func NewClientService(optionsagpl.ClientServiceOptions) (*ClientService,error)

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

func (*ClientService)ServeMultiAgentClientadded inv2.7.0

func (s *ClientService) ServeMultiAgentClient(ctxcontext.Context, versionstring, connnet.Conn, iduuid.UUID)error

typeHTMLCoordinatoradded inv2.5.0

type HTMLCoordinator struct {IDuuid.UUIDHeartbeatAgetime.Duration}

typeHTMLDebugadded inv2.5.0

type HTMLDebug struct {Coordinators []*HTMLCoordinatorPeers        []*HTMLPeerTunnels      []*HTMLTunnel}

typeHTMLPeeradded inv2.5.0

type HTMLPeer struct {IDuuid.UUIDCoordinatorIDuuid.UUIDLastWriteAgetime.DurationNodestringStatusdatabase.TailnetStatus}

typeHTMLTunneladded inv2.5.0

type HTMLTunnel struct {CoordinatorIDuuid.UUIDSrcIDuuid.UUIDDstIDuuid.UUIDLastWriteAgetime.Duration}

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp