MCPcopy Create free account
hub / github.com/tailscale/tailcat / NewClient

Function NewClient

tailcat.go:1455–1457  ·  view source on GitHub ↗

NewClient returns a client that will connect to the server identified by the given token. It is shorthand for &Client{Server: server}; see [Client] for the optional fields that may also be set before the client's first use.

(server ConnBlob)

Source from the content-addressed store, hash-verified

1453// &Client{Server: server}; see [Client] for the optional fields that
1454// may also be set before the client's first use.
1455func NewClient(server ConnBlob) *Client {
1456 return &Client{Server: server}
1457}
1458
1459// initLocked builds the client's network stack (WireGuard engine and
1460// netstack) on first use, with defaults for unset config fields. It

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected