Documentation ¶
Overview ¶
Package tsnet provides Tailscale as a library.
It is an experimental work in progress.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { // Dir specifies the name of the directory to use for // state. If empty, a directory is selected automatically // under os.UserConfigDir (https://golang.org/pkg/os/#UserConfigDir). // based on the name of the binary. Dir string // Hostname is the hostname to present to the control server. // If empty, the binary name is used. Hostname string // Logf, if non-nil, specifies the logger to use. By default, // log.Printf is used. Logf logger.Logf // contains filtered or unexported fields }
Server is an embedded Tailscale server.
Its exported fields may be changed until the first call to Listen.
func (*Server) Dial ¶ added in v1.20.0
Dial connects to the address on the tailnet. It will start the server if it has not been started yet.
Click to show internal directories.
Click to hide internal directories.