Documentation
¶
Overview ¶
Package tailhelp provides helper functions for working with Tailscale's API, making it easier to get information about the local node and its peers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MyIP ¶
MyIP returns the first IPv4 address of the local Tailscale node. Returns an error if no IPv4 address is found or if unable to get node status.
func PeersFromHostnamePrefix ¶
PeersFromHostnamePrefix returns a list of peer DNS names that match the given hostname prefix. If onlyOnline is true, only returns peers that are currently online. Returns an empty list if no matching peers are found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.