Documentation
¶
Overview ¶
Package service manages the current user's Overgent background service. On Linux that is a systemd user unit driven by "systemctl --user".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶ added in v0.1.1
Account identifies the logged-in member a service is installed for.
It is build tagged because the identity genuinely differs. macOS and Linux address the per-user manager by numeric uid - launchd's gui/<uid> domain and loginctl's user record both take one - so that is what the account carries here. Windows has no numeric uid at all, which is why account_windows.go exists rather than a runtime.GOOS branch at every call site.
func CurrentAccount ¶ added in v0.1.1
CurrentAccount resolves the account the calling process runs as.
type Manager ¶
Manager installs and controls the one per-user production service.
func NewManager ¶ added in v0.1.1
NewManager binds a Manager to an account. It is the only construction site callers outside this package need, so adding a platform whose identity is not a uid does not touch them.