services

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package services provides centralized service registry for contextd.

Registry pattern for accessing all core services (checkpoint, memory, remediation, repository, troubleshoot, hooks, compression, vectorstore). Use NewRegistry() to create a registry with service instances, then accessor methods to retrieve individual services.

See CLAUDE.md Architecture section for service layer overview.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Checkpoint   checkpoint.Service
	Remediation  remediation.Service
	Memory       *reasoningbank.Service
	Repository   *repository.Service
	Troubleshoot *troubleshoot.Service
	Hooks        *hooks.HookManager
	Distiller    *reasoningbank.Distiller
	Scrubber     secrets.Scrubber
	Compression  *compression.Service
	VectorStore  vectorstore.Store
}

Options configures the registry with service instances.

type Registry

type Registry interface {
	Checkpoint() checkpoint.Service
	Remediation() remediation.Service
	Memory() *reasoningbank.Service
	Repository() *repository.Service
	Troubleshoot() *troubleshoot.Service
	Hooks() *hooks.HookManager
	Distiller() *reasoningbank.Distiller
	Scrubber() secrets.Scrubber
	Compression() *compression.Service
	VectorStore() vectorstore.Store
}

Registry provides access to all contextd services. Use accessor methods to retrieve individual services.

func NewRegistry

func NewRegistry(opts Options) Registry

NewRegistry creates a new service registry.

Jump to

Keyboard shortcuts

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