meshcentral

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplySettings

func ApplySettings(remoteNodeId string, remotePort int, localPort int, remoteTarget string, debug bool)

func GetLocalPort

func GetLocalPort() int

func StartRouter

func StartRouter(ready chan struct{})

func StartShell

func StartShell(protocol int)

test setting up websocket

func StartSocket

func StartSocket()

func StopSocket

func StopSocket()

Types

type Device

type Device struct {
	Id   string
	Name string
	OS   string
	IP   string
	Icon int
	Conn int
	Pwr  int
}

func GetDevices

func GetDevices() []Device

hacky until I get better at golang

type Settings

type Settings struct {
	ServerURL             string
	Username              string
	Password              string
	Token                 string
	EmailToken            bool
	SMSToken              bool
	AuthCookie            string
	ServerID              string
	LoginKey              string
	LocalPort             int
	RemotePort            int
	RemoteTarget          string
	RemoteNodeID          string
	WebSocket             *websocket.Conn
	WebChannel            *websocket.Conn
	ACookie               string
	RCookie               string
	RenewCookieTimer      *time.Timer
	ServerAuthClientNonce string
	MeshServerTlsHash     string
	ServerHttpsHash       string
	Devices               []Device
	DeviceQueryState      int
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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