Help us shape the future of Go! Take the 2026 Go Developer Survey

sf

package
v1.0.84 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SF_PID     int32 = -1
	SF_SUB_PID int32 = -1
)

Functions

func API_ClaimServer added in v1.0.64

func API_ClaimServer(AdminPassword string, authToken string) (string, error)

func API_CreatePasswordlessAuth added in v1.0.64

func API_CreatePasswordlessAuth() (string, error)

func API_RunCommand added in v1.0.64

func API_RunCommand(Command string, authToken string) (string, error)

func API_SendRequest added in v1.0.64

func API_SendRequest(dataString string, token string, returnModel interface{}) error

func API_SetClientPassword added in v1.0.64

func API_SetClientPassword(ClientPassword string, authToken string) error

func API_ValidateToken added in v1.0.64

func API_ValidateToken(authToken string) error

func AutoRestart added in v1.0.47

func AutoRestart() error

func ClaimServer added in v1.0.64

func ClaimServer(AdminPassword string, ClientPassword string) error

func EnsureInstalled added in v1.0.84

func EnsureInstalled() error

EnsureInstalled is idempotent: it returns success if the server is already installed at the available version, and never removes an existing install. The task queue delivers at-least-once, so this must be safe to run twice.

func GetLatestedVersion

func GetLatestedVersion()

func GetSFPID

func GetSFPID() int32

func GetStartArgs

func GetStartArgs() []string

func InitSFHandler

func InitSFHandler()

func IsInstalled

func IsInstalled() bool

func IsRunning

func IsRunning() bool

func KillSFServer

func KillSFServer() error

func Reinstall added in v1.0.84

func Reinstall() error

Reinstall destroys the existing installation first. Only ever user-triggered.

func RemoveSFServer

func RemoveSFServer() error

func SendStates

func SendStates()

func ShutdownSFHandler

func ShutdownSFHandler() error

func ShutdownSFServer

func ShutdownSFServer() error

func StartSFServer

func StartSFServer() error

func UpdateSFServer

func UpdateSFServer() error

UpdateSFServer updates an existing installation. It is an error to call it on a machine with no install: retrying that cannot help, so the task dies rather than looping.

Types

This section is empty.

Jump to

Keyboard shortcuts

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