mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-11 00:22:56 -05:00
23 lines
553 B
Go
23 lines
553 B
Go
package proto
|
|
|
|
type TailscaleState string
|
|
|
|
const (
|
|
TailscaleNotInstall TailscaleState = "notInstall"
|
|
TailscaleNotRunning TailscaleState = "notRunning"
|
|
TailscaleNotLogin TailscaleState = "notLogin"
|
|
TailscaleStopped TailscaleState = "stopped"
|
|
TailscaleRunning TailscaleState = "running"
|
|
)
|
|
|
|
type GetTailscaleStatusRsp struct {
|
|
State TailscaleState `json:"state"`
|
|
Name string `json:"name"`
|
|
IP string `json:"ip"`
|
|
Account string `json:"account"`
|
|
}
|
|
|
|
type LoginTailscaleRsp struct {
|
|
Url string `json:"url"`
|
|
}
|