Versions in this module Expand all Collapse all v0 v0.2.0 Jul 25, 2026 Changes in this version + const MetaCurated + const OptCapabilityMappings + const OptCustomerMappings + const OptMarketMappings + func IsCurated(metadata map[string]any) bool + func WrapErrorByMessage(err error, context string) error + func WrapHTTPError(err error, resp *http.Response, context string) error type Config + func (c Config) GetStringMap(key string) map[string]string v0.1.0 May 23, 2026 Changes in this version + const PriorityThick + const PriorityThin + var ErrAuthentication = errors.New("authentication failed") + var ErrInvalidConfig = errors.New("invalid provider configuration") + var ErrNotSupported = errors.New("operation not supported by this provider") + var ErrProviderNotFound = errors.New("provider not found in registry") + var ErrRateLimited = errors.New("rate limited by provider") + func ClearRegistry() + func GetPriority(name string) int + func IsRegistered(name string) bool + func List() []string + func Register(name string, factory ProviderFactory, priority int) + func Unregister(name string) + type Capabilities struct + MaxBatchSize int + RateLimitPerMinute int + SignalTypes []signal.Type + SupportsAcknowledge bool + SupportsBatchFetch bool + SupportsFiltering bool + SupportsStreaming bool + type Config struct + APIKey string + APISecret string + BaseURL string + Options map[string]any + RetryMax int + Timeout time.Duration + func (c Config) GetOption(key string, defaultVal any) any + func (c Config) GetStringOption(key, defaultVal string) string + type FetchOptions struct + Filters map[string]string + Limit int + Severities []string + Since time.Time + Statuses []string + Until time.Time + type Provider interface + Capabilities func() Capabilities + Close func() error + Fetch func(ctx context.Context, opts FetchOptions) ([]signal.Signal, error) + Name func() string + Subscribe func(ctx context.Context, opts SubscribeOptions) (<-chan signal.Signal, error) + func MustNew(name string, cfg Config) Provider + func New(name string, cfg Config) (Provider, error) + type ProviderFactory func(cfg Config) (Provider, error) + type SubscribeOptions struct + BufferSize int + Filters map[string]string