Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupStalePID ¶
func CleanupStalePID(pidPath string)
CleanupStalePID removes the PID file if the referenced process is not running.
func GracefulStop ¶
GracefulStop sends an interrupt signal to the process with the given PID.
func IsRunning ¶
IsRunning checks if a daemon is running by reading the PID file and verifying the process exists.
func StartDaemonProcess ¶
func StartDaemonProcess() error
StartDaemonProcess starts the daemon as a background process by re-executing the current binary with "daemon start" arguments.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the daemon's Unix socket server that receives and writes events.
func (*Server) EventCount ¶
EventCount returns the total number of events received.
func (*Server) EventsSinceCompile ¶
EventsSinceCompile returns the number of events since the counter was last reset.
func (*Server) LastEventTime ¶
LastEventTime returns the time of the last received event.
func (*Server) ResetCompileCounter ¶ added in v0.1.7
func (s *Server) ResetCompileCounter()
ResetCompileCounter resets the events-since-compile counter to zero.
func (*Server) SetIdleTimeout ¶
SetIdleTimeout overrides the idle timeout duration. For testing.
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher monitors directories for new skill files and invokes a callback.
func NewWatcher ¶
NewWatcher creates a file watcher for the given directories.