ts

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatus

func GetStatus() (*ipnstate.Status, error)

func Ping

func Ping(ip netip.Addr) (*ipnstate.PingResult, error)

func PingResultString

func PingResultString(pr *ipnstate.PingResult) (string, error)

func SetTSStatus

func SetTSStatus(status bool)

Connect/Disconnect Tailscale network. Equivalent to `tailscale up` (status=true) `tailscale down` (status=false) commands

Types

type ActionType

type ActionType int
const (
	ConnectAction ActionType = iota
	OfferExitNode
	PingAction
)

func (ActionType) String

func (f ActionType) String() string

type ConnectMsg

type ConnectMsg bool

type PingMsg

type PingMsg netip.Addr

type StatusDataMsg

type StatusDataMsg *ipnstate.Status

type StatusErrorMsg

type StatusErrorMsg error

type ToggleConnectionMsg

type ToggleConnectionMsg bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL