utils

package
v1.29.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersion

func CompareVersion(v1, v2 string) int

CompareVersion compares two version strings Returns: -1 if v1 < v2, 0 if v1 == v2, 1 if v1 > v2

func GetAvailablePort

func GetAvailablePort() (int, error)

GetAvailablePort finds an available port

func GetMachineIP

func GetMachineIP() (string, error)

GetMachineIP gets the machine's public IP address

func HMACSHA512

func HMACSHA512(message, secret string) string

HMACSHA512 computes HMAC-SHA512 signature

func IsVersionGreaterOrEqual

func IsVersionGreaterOrEqual(v1, v2 string) bool

IsVersionGreaterOrEqual checks if v1 >= v2

func SetupStatsAPI

func SetupStatsAPI(ctx *types.Context)

SetupStatsAPI sets up statistics API endpoints

Types

This section is empty.

Jump to

Keyboard shortcuts

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