services

package
v0.0.0-...-7ad5d0e Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// Shared infrastructure
	DB        *database.Pool
	JobQueue  *job_queue.Client
	NATS      *nats.Conn
	Metrics   *metrics.Metrics
	Analytics *analytics.Client

	// Service implementations
	AuthService          *auth.Service
	IdentityService      *identity.Service
	UserService          *user.Service
	OrgService           *org.Service
	PersonaService       *persona.Service
	ThreadService        *thread.Service
	TodoService          *todo.Service
	ThreadContextService *thread_context.Service
	LLMResponseService   *llm_response.Service
	ToolExecutionService *tool_execution.Service
	BillingService       *billing.Service
	ConnectedAppService  *connected_app.Service
}

Registry holds all service implementations and shared infrastructure. Shared infrastructure (DB, JobQueue, NATS, Metrics, Analytics) is initialized first and made available to all services.

func NewRegistry

func NewRegistry(cfg *config.Config, log *logger.Logger, ctx context.Context, stytchClient *stytchapi.API) (*Registry, error)

NewRegistry creates a new service registry with all services initialized

func (*Registry) Shutdown

func (r *Registry) Shutdown(shutdownCtx context.Context) error

Jump to

Keyboard shortcuts

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