doctor

package
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResult

type CheckResult struct {
	Name     string `json:"name"`
	Status   string `json:"status"` // "pass", "fail", "warn"
	Message  string `json:"message"`
	Severity string `json:"severity"` // "info", "warning", "error"
}

CheckResult represents the result of a single check

type Diagnostics

type Diagnostics struct {
	Checks []CheckResult `json:"checks"`
	Issues []string      `json:"issues"`
	Status string        `json:"status"`
}

Diagnostics holds diagnostic information

func (*Diagnostics) PrintReport

func (d *Diagnostics) PrintReport()

PrintReport prints a formatted diagnostic report

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner runs diagnostic checks

func NewRunner

func NewRunner(cfg *config.Config, db *storage.DB, projectID string, memoryService *memory.Service) *Runner

NewRunner creates a new diagnostic runner

func NewRunnerWithMode

func NewRunnerWithMode(cfg *config.Config, db *storage.DB, projectID string, memoryService *memory.Service, mode ServerMode) *Runner

NewRunnerWithMode creates a new diagnostic runner with a specific server mode

func (*Runner) RunAll

func (d *Runner) RunAll() *Diagnostics

RunAll runs all diagnostic checks

type ServerMode

type ServerMode string

ServerMode represents the mode in which tinyMem is running

const (
	ProxyMode      ServerMode = "proxy"
	MCPMode        ServerMode = "mcp"
	StandaloneMode ServerMode = "standalone"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL