Documentation
¶
Overview ¶
Package providers implements a provider registry pattern for extensible multi-provider support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(provider string, config ProviderConfig) (ports.NylasClient, error)
NewClient creates a new provider client by name
func Register ¶
func Register(name string, factory ProviderFactory)
Register registers a provider factory with the default registry Providers should call this in their init() function
Types ¶
type ProviderConfig ¶
type ProviderConfig struct {
APIKey string
ClientID string
ClientSecret string
BaseURL string
Region string
}
ProviderConfig contains configuration for initializing a provider
type ProviderFactory ¶
type ProviderFactory func(config ProviderConfig) (ports.NylasClient, error)
ProviderFactory is a function that creates a new provider client
Click to show internal directories.
Click to hide internal directories.