Versions in this module Expand all Collapse all v1 v1.0.0 Jan 18, 2026 Changes in this version + const ProtocolVersion + type Daemon struct + func NewDaemon(vaultRoot string) *Daemon + func (d *Daemon) GetPID() int + func (d *Daemon) IsRunning() bool + func (d *Daemon) Start() error + func (d *Daemon) Status() (bool, int, error) + func (d *Daemon) Stop() error + func (d *Daemon) WritePID(pid int) error + type Message struct + Payload json.RawMessage + Type MessageType + Version int + func NewMessage(msgType MessageType, payload interface{}) (*Message, error) + type MessageType string + const MessageTypeQueryExecute + const MessageTypeReindexPaths + const MessageTypeShutdown + const MessageTypeStatus + type QueryExecuteRequest struct + Query string + type QueryExecuteResponse struct + Results interface{} + type ReindexPathsRequest struct + Paths []string + type ReindexPathsResponse struct + Processed int + type Response struct + Data interface{} + Error string + Success bool + Version int + func NewResponse(success bool, data interface{}, err error) *Response + type Server struct + func NewServer(vaultRoot string, cfg *config.Config) (*Server, error) + func (s *Server) Start() error + func (s *Server) Stop() error + type StatusRequest struct + type StatusResponse struct + PID int + Running bool Other modules containing this package github.com/sv4u/touchlog/v2