client_common.go 486 B

123456789101112131415161718
  1. // Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package controlhttp
  5. import (
  6. "tailscale.com/control/controlbase"
  7. )
  8. // ClientConn is a Tailscale control client as returned by the Dialer.
  9. //
  10. // It's effectively just a *controlbase.Conn (which it embeds) with
  11. // optional metadata.
  12. type ClientConn struct {
  13. // Conn is the noise connection.
  14. *controlbase.Conn
  15. }