Documentation
¶
Index ¶
- func BuildChromeBridgeCmd(version string) *cobra.Command
- func BuildDaemonCmd(cmdFactory func() *cobra.Command, version string) *cobra.Command
- func ChromeBridgeLogPath() string
- func DaemonLogPath() string
- func DaemonPidPath() string
- func ReadAlivePid() (int, bool)
- func RemovePidFile()
- func WritePidFile(pid int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildChromeBridgeCmd ¶
BuildChromeBridgeCmd creates the "chrome-bridge" command.
func BuildDaemonCmd ¶
BuildDaemonCmd creates the "daemon" command tree.
func ChromeBridgeLogPath ¶
func ChromeBridgeLogPath() string
ChromeBridgeLogPath returns the path to the chrome bridge log file (~/.human/chrome-bridge.log), creating the directory if needed.
func DaemonLogPath ¶
func DaemonLogPath() string
DaemonLogPath returns the path to the daemon log file.
func DaemonPidPath ¶
func DaemonPidPath() string
DaemonPidPath returns the path to the daemon PID file.
func ReadAlivePid ¶
ReadAlivePid reads the PID file and checks if the process is alive. Returns (0, false) if no PID file exists or the process is dead.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.