Documentation
¶
Overview ¶
Package domain defines shared error types and values used across all domain services. Adapters wrap these with context. Handlers check them with errors.Is.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound indicates the requested entity does not exist. ErrNotFound = errors.New("not found") // ErrNotConfigured indicates a required dependency (store, service) is nil. ErrNotConfigured = errors.New("not configured") // ErrInvalidInput indicates the caller provided bad arguments. ErrInvalidInput = errors.New("invalid input") ErrUnauthorized = errors.New("unauthorized") // ErrConflict indicates a uniqueness or state conflict. ErrConflict = errors.New("conflict") )
Sentinel errors for domain-level error handling. Use fmt.Errorf("context: %w", domain.ErrNotFound) in adapters. Use errors.Is(err, domain.ErrNotFound) in handlers.
Functions ¶
func ClampLimit ¶
ClampLimit normalises a pagination limit to fall within [1, max]. If limit is <= 0 it returns defaultVal; if > max it returns max.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package admin provides the domain service for application settings and audit logging.
|
Package admin provides the domain service for application settings and audit logging. |
|
Package analytics provides the domain service for traffic analytics, endpoint ranking, heatmaps, and trend analysis.
|
Package analytics provides the domain service for traffic analytics, endpoint ranking, heatmaps, and trend analysis. |
|
Package auth provides the domain service for user authentication and MCP token validation.
|
Package auth provides the domain service for user authentication and MCP token validation. |
|
Package code provides the domain service for code entity risk analysis and test correlation.
|
Package code provides the domain service for code entity risk analysis and test correlation. |
|
Package connectors provides the domain service for managing external data source connections.
|
Package connectors provides the domain service for managing external data source connections. |
|
Package database provides the domain service for external database introspection (schema, queries, activity).
|
Package database provides the domain service for external database introspection (schema, queries, activity). |
|
Package errors provides the domain service for error group management, resolution lifecycle, and impact analysis.
|
Package errors provides the domain service for error group management, resolution lifecycle, and impact analysis. |
|
Package healthchecks provides the domain service for HTTP endpoint uptime monitoring and health check management.
|
Package healthchecks provides the domain service for HTTP endpoint uptime monitoring and health check management. |
|
Package logs provides the domain service for log search, analysis, and trace correlation.
|
Package logs provides the domain service for log search, analysis, and trace correlation. |
|
Package overview provides business logic for the system overview domain.
|
Package overview provides business logic for the system overview domain. |
|
Package servers provides the domain service for monitored server registration, health tracking, and metric queries.
|
Package servers provides the domain service for monitored server registration, health tracking, and metric queries. |
|
Package setup provides the domain service for first-run onboarding and system status detection.
|
Package setup provides the domain service for first-run onboarding and system status detection. |
|
Package watches provides the domain service for metric threshold monitors (watches) and their alerts.
|
Package watches provides the domain service for metric threshold monitors (watches) and their alerts. |
Click to show internal directories.
Click to hide internal directories.