Documentation
¶
Overview ¶
Package server provides the HTTP server for the grove daemon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunningConfig ¶
type RunningConfig struct {
GitInterval time.Duration `json:"git_interval"`
SessionInterval time.Duration `json:"session_interval"`
WorkspaceInterval time.Duration `json:"workspace_interval"`
PlanInterval time.Duration `json:"plan_interval"`
NoteInterval time.Duration `json:"note_interval"`
StartedAt time.Time `json:"started_at"`
}
RunningConfig holds the active configuration intervals being used by the daemon. This is exposed via the /api/config endpoint so clients can verify what config is active.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server manages the daemon's HTTP server over a Unix socket.
func (*Server) ListenAndServe ¶
ListenAndServe starts the daemon on the given unix socket path. It blocks until the server stops or fails.
func (*Server) SetRunningConfig ¶
func (s *Server) SetRunningConfig(cfg *RunningConfig)
SetRunningConfig sets the running configuration for the server.
Click to show internal directories.
Click to hide internal directories.