MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / controlStream

Struct controlStream

connection/control.go:19–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17type registerClientFunc func(context.Context, io.ReadWriteCloser, time.Duration) tunnelrpc.RegistrationClient
18
19type controlStream struct {
20 observer *Observer
21
22 connectedFuse ConnectedFuse
23 tunnelProperties *TunnelProperties
24 connIndex uint8
25 edgeAddress net.IP
26 protocol Protocol
27
28 registerClientFunc registerClientFunc
29 registerTimeout time.Duration
30
31 gracefulShutdownC <-chan struct{}
32 gracePeriod time.Duration
33 stoppedGracefully bool
34}
35
36// ControlStreamHandler registers connections with origintunneld and initiates graceful shutdown.
37type ControlStreamHandler interface {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected