Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tailscale/tailcat
/ types & classes
Types & classes
21 in github.com/tailscale/tailcat
⨍
Functions
179
◇
Types & classes
21
↓ 9 callers
TypeAlias
ConnBlob
ConnBlob is a compact, URL-safe string that a server gives to clients so they can connect. It is the "tc"-prefixed base64url encoding of CBOR-encoded
tailcat.go:136
↓ 7 callers
TypeAlias
DERPMapURL
DERPMapURL is an option for [ConnInfo.Expand] specifying an alternate URL to fetch the DERP map from instead of [DefaultDERPMapURL].
tailcat.go:98
Struct
Client
Client connects to a [Server] over a WireGuard tunnel relayed through DERP. Populate Server (the only required field, or use the [NewClient] shorthand
tailcat.go:1399
Struct
ConnInfo
ConnInfo describes how to reach a server: its public key and which DERP relay region to use. It is serialized into a [ConnBlob] for exchange, via the
tailcat.go:141
Interface
DERPMapCache
DERPMapCache is an option for [ConnInfo.Expand] and [FetchDERPMap] that caches fetched DERP maps. Without one, a process-wide in-memory cache is used;
tailcat.go:109
Struct
NodePublic
NodePublic is a wrapper around key.NodePublic just so we can have a slightly smaller CBOR representation without the "np" prefix.
tailcat.go:165
Struct
PingResult
PingResult is the result of a successful [Client.Ping] call.
tailcat.go:1582
Struct
PrivateKey
PrivateKey is a node identity: a private key paired with the connection info needed to reach this node. The DERP region in Public must be populated by
tailcat.go:189
Struct
Server
Server listens for clients over a WireGuard tunnel relayed through DERP. Incoming TCP connections are dispatched via [Server.OnTCP] (for connections a
tailcat.go:277
Interface
closeWriter
closeWriter is implemented by TCP-like connections (such as [net.TCPConn] and gVisor's gonet.TCPConn) that can shut down just their writing side.
tailcat.go:1790
Struct
derpMapCache
derpMapCache implements [tailcat.DERPMapCache] on disk, in $XDG_CACHE_HOME/tailcat (~/.cache/tailcat on Linux). Each DERP map URL gets a derpmap-<url-
cmd/tailcat/tailcat.go:317
Struct
expandForServer
tailcat.go:131
Struct
locoBackend
locoBackend is like tailscaled's LocalBackend, but crazier. It serves a similar purpose (to be the hub of the world) but there's no controlclient invo
tailcat.go:209
Struct
memDERPMapCache
memDERPMapCache is a process-wide in-memory [DERPMapCache], the default when no cache option is provided.
tailcat.go:810
Struct
memDERPMapEntry
tailcat.go:815
Struct
recvResult
web/wasm_test.go:330
Struct
socksTarget
socksTarget is where a SOCKS5 destination address should be dialed.
cmd/tailcat/tailcat.go:587
Struct
testSSHEnv
testSSHEnv holds the shared state for SSH tests: a tailcat server with SSH enabled and a connected client, all using a localhost DERP relay.
tailcat_ssh_test.go:25
Struct
wireConnInfo
This file defines the CBOR wire types behind [ConnBlob]. They mirror the subset of [ConnInfo] and the tailcfg DERP types that tailcat actually uses, w
wire.go:26
Struct
wireNode
wireNode is the wire form of [tailcfg.DERPNode].
wire.go:41
Struct
wireRegion
wireRegion is the wire form of [tailcfg.DERPRegion].
wire.go:33