servercmds

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGroup

func AddGroup(name string, subscription_url string)

func AddProfiles

func AddProfiles(uris string, gid int)

func Connect

func Connect(group_id int, profile_id int)

func CreateJsonCommand

func CreateJsonCommand(msg string, obj any) []byte

func DeleteGroup

func DeleteGroup(gid int)

func DeleteProfiles

func DeleteProfiles(profiles []sharedtypes.ProfileID)

func Die

func Die()

func DisableTun

func DisableTun()

func Disconnect

func Disconnect()

func EnableTun

func EnableTun()

func GetApplicationState

func GetApplicationState()

func Init

func Init(connection *connection.ConnectionHandler)

func IsRoot

func IsRoot()

func Test

func Test(group_id int, profile_id int)

func UpdateProfile

func UpdateProfile(group_id int, profile_id int, name string)

func UpdateSubscription

func UpdateSubscription(gid int)

Types

type ServerCmds

type ServerCmds struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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