Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Type PlatformKind `yaml:"type"`
Config map[string]any `yaml:"config"`
}
type PlatformKind ¶
type PlatformKind string
type Provider ¶
type Provider interface {
// Name returns the name of the platform
Name() string
// IsEnabled returns true if the platform is enabled
IsEnabled() bool
// ConfigureContainer configures the IoC container for the platform
ConfigureContainer(container *ioc.NestedContainer) error
}
Provider is an interface for a platform provider
func Initialize ¶
func Initialize(container *ioc.NestedContainer, defaultPlatform PlatformKind) (Provider, error)
Initialize configures the IoC container with the platform specific components
Click to show internal directories.
Click to hide internal directories.