Documentation
¶
Overview ¶
Package infra implements infrastructure probing for known endpoints (Ollama instances, Samverk services, Gitea) and synchronises the results with Synapset machine memories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
Name string // human-readable name (e.g. "vm-300")
URL string // base URL (e.g. "http://192.168.1.207:11434")
Kind string // "ollama", "samverk", "gitea"
Source string // Synapset source key for query_memory
}
Endpoint describes a single infrastructure endpoint to probe.
func DefaultEndpoints ¶
func DefaultEndpoints() []Endpoint
DefaultEndpoints returns the standard set of infrastructure endpoints.
type ProbeResult ¶
type ProbeResult struct {
Endpoint Endpoint
Reachable bool
Error string // non-empty when Reachable is false
Fields map[string]string // key-value pairs of probed state
}
ProbeResult holds the state captured from a single endpoint probe.
Click to show internal directories.
Click to hide internal directories.