integrations

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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 NewRegistry

func NewRegistry() *Registry

NewRegistry creates a new integration registry

func (*Registry) CheckHealth

func (r *Registry) CheckHealth(ctx context.Context) map[string]error

CheckHealth runs health check if provided; returns map[name]error (nil if healthy)

func (*Registry) List

func (r *Registry) List() []string

List returns names of all registered integrations

func (*Registry) Register

func (r *Registry) Register(in Integration)

Register adds or replaces an integration by name

Jump to

Keyboard shortcuts

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