daemon

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package daemon manages OS-level service installation for tmux-webui.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GuardPort

func GuardPort(host string, port int) error

GuardPort refuses daemon install when the configured host:port is already being served by something else. Without this check, installing a second manager for a port already owned by launchd/systemd (or Workshop's own workshop_services) races two processes for the same bind — a confusing double-manager bug to debug after the fact.

Types

type Manager

type Manager interface {
	Install(binaryPath string, dryRun bool) error
	Uninstall(dryRun bool) error
	Status() (string, error)
	Logs(follow bool) error
}

Manager installs, uninstalls, and reports status of the background service.

func New

func New() (Manager, error)

New returns the platform-appropriate Manager.

Jump to

Keyboard shortcuts

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