util

package
v0.0.0-...-1e081cc Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const RELEASE_URL = "https://api.github.com/repos/EV3-OpenAPI/EV3-API/releases/latest"
View Source
const SERVER_FILE_NAME = "ev3api-server"
View Source
const VERSION_FILE_NAME = "version"

Variables

This section is empty.

Functions

func CheckForNewVersion

func CheckForNewVersion()

CheckForNewVersion checks if there is a new release, if there is, downloads it. After the download it starts the executable, and if that is successful it replaces the original executable and exits, causing systemd to restart this application.

func GetHostname

func GetHostname() string

func GetHostnameForMac

func GetHostnameForMac(mac string) string

func GetWlanInterfaceIndex

func GetWlanInterfaceIndex() int

func SetSystemHostname

func SetSystemHostname(hostname string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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