Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Integration ¶
type Integration struct {
Name string
Description string
// Health checks the integration and returns latency and error (if unhealthy)
Health func(ctx context.Context) (latency time.Duration, err error)
}
Integration represents a third-party integration with optional health check
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry stores registered integrations
func (*Registry) CheckHealth ¶
CheckHealth runs health check if provided; returns map[name]error (nil if healthy)
func (*Registry) Register ¶
func (r *Registry) Register(in Integration)
Register adds or replaces an integration by name
Click to show internal directories.
Click to hide internal directories.