| 17 | type registerClientFunc func(context.Context, io.ReadWriteCloser, time.Duration) tunnelrpc.RegistrationClient |
| 18 | |
| 19 | type 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. |
| 37 | type ControlStreamHandler interface { |
nothing calls this directly
no outgoing calls
no test coverage detected