Documentation
¶
Index ¶
- func DaemonReadinessTimeout() time.Duration
- func ExtractPortFromAddress(addr string) string
- func IsDaemonStillStarting(err error) bool
- func PublicURLAddress(configuredListenAddr, resolvedListenAddr string) string
- func WaitForConnectionReady(path string, childPid int, timeout time.Duration) (bool, error)
- type App
- type RuntimeHooks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DaemonReadinessTimeout ¶ added in v0.8.0
DaemonReadinessTimeout exposes the readiness window so external tests can assert it stays above the document-extractor probe ceiling (ingest.DoclingProbeTimeout). Read-only accessor.
func ExtractPortFromAddress ¶
ExtractPortFromAddress extracts a numeric trailing port token from a host:port address or malformed best-effort address string.
func IsDaemonStillStarting ¶ added in v0.8.0
IsDaemonStillStarting reports whether err indicates the daemon child was still alive but had not yet written connection.json when the readiness deadline expired (as opposed to having crashed). Exported so the readiness classification — still-starting vs crashed vs ready — can be unit-tested from the external tests package without exposing waitForConnectionFile.
func PublicURLAddress ¶
PublicURLAddress derives the public-facing address using the configured listen host and the resolved runtime port.
func WaitForConnectionReady ¶ added in v0.8.0
WaitForConnectionReady is a thin exported wrapper over waitForConnectionFile so the readiness classification — ready vs still-starting vs crashed — can be exercised from the external tests package (waitForConnectionFile itself stays unexported). It returns whether the connection became ready and the classifying error; pair it with IsDaemonStillStarting to distinguish the healthy-but-slow case from a child that exited before binding.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func NewAppWithIO ¶
NewAppWithIO constructs an App with the given output writers and the default ingestor/store constructors.
func NewAppWithIOAndHooks ¶
func NewAppWithIOAndHooks(stdout, stderr io.Writer, hooks RuntimeHooks) *App
NewAppWithIOAndHooks constructs an App with the given writers, overriding the default ingestor/store/retriever constructors with any non-nil hooks (used by tests to inject fakes).
Source Files
¶
- app.go
- ask.go
- bridge.go
- claude_cmd.go
- client_cmds.go
- config_cmd.go
- daemon.go
- daemon_unix.go
- down.go
- embed_worker.go
- export.go
- export_ttml.go
- registration_hint.go
- reindex.go
- remote_commands.go
- routing_decision.go
- server_doctor.go
- service.go
- service_other.go
- status.go
- style.go
- support_bundle.go
- up.go
- up_daemon.go
- up_distributed_embed.go