Versions in this module Expand all Collapse all v0 v0.1.0 Jan 5, 2026 Changes in this version + var DefaultDir = filepath.Join(os.Getenv("HOME"), ".omniproxy") + var DefaultLogFile = filepath.Join(DefaultDir, "omniproxyd.log") + var DefaultPIDFile = filepath.Join(DefaultDir, "omniproxyd.pid") + var DefaultSocketPath = filepath.Join(DefaultDir, "omniproxyd.sock") + func IsRunning(pidFile string) (bool, int, error) + func StartBackground(args []string) error + func StopByPID(pidFile string) error + type Client struct + func NewClient(socketPath string) *Client + func (c *Client) GetStatus() (*Status, error) + func (c *Client) Reload() error + func (c *Client) Stop() error + type Config struct + Database string + Host string + LogFile string + PIDFile string + ProxyPort int + SocketPath string + Version string + func DefaultConfig() *Config + type Daemon struct + func New(cfg *Config) *Daemon + func (d *Daemon) IncrementRequests() + func (d *Daemon) SetCallbacks(onStart, onStop, onReload func() error) + func (d *Daemon) SetTrafficQuerier(tq backend.TrafficQuerier) + func (d *Daemon) Start(ctx context.Context) error + func (d *Daemon) Status() *Status + func (d *Daemon) Stop(ctx context.Context) error + func (d *Daemon) Wait() + type Status struct + Database string + MetricsPort int + PID int + ProxyPort int + Requests int64 + Running bool + StartTime time.Time + Uptime string + Version string + type TrafficResponse struct + Limit int + Offset int + Records []*backend.TrafficRecord + Total int64