Documentation
¶
Index ¶
- func NewStrategyRegistry() services.StrategyRegistry
- type StrategyRegistry
- func (r *StrategyRegistry) Clear()
- func (r *StrategyRegistry) GetStrategy(platform models.PlatformType) (services.PlatformStrategy, error)
- func (r *StrategyRegistry) GetSupportedPlatforms() []models.PlatformType
- func (r *StrategyRegistry) HasStrategy(platform models.PlatformType) bool
- func (r *StrategyRegistry) RegisterStrategy(platform models.PlatformType, strategy services.PlatformStrategy)
- func (r *StrategyRegistry) UnregisterStrategy(platform models.PlatformType)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStrategyRegistry ¶
func NewStrategyRegistry() services.StrategyRegistry
Types ¶
type StrategyRegistry ¶
type StrategyRegistry struct {
// contains filtered or unexported fields
}
StrategyRegistry manages platform-specific conversion strategies
func (*StrategyRegistry) Clear ¶
func (r *StrategyRegistry) Clear()
Clear removes all registered strategies
func (*StrategyRegistry) GetStrategy ¶
func (r *StrategyRegistry) GetStrategy(platform models.PlatformType) (services.PlatformStrategy, error)
GetStrategy retrieves the strategy for the specified platform
func (*StrategyRegistry) GetSupportedPlatforms ¶
func (r *StrategyRegistry) GetSupportedPlatforms() []models.PlatformType
GetSupportedPlatforms returns list of supported platforms
func (*StrategyRegistry) HasStrategy ¶
func (r *StrategyRegistry) HasStrategy(platform models.PlatformType) bool
HasStrategy checks if a platform is supported
func (*StrategyRegistry) RegisterStrategy ¶
func (r *StrategyRegistry) RegisterStrategy(platform models.PlatformType, strategy services.PlatformStrategy)
RegisterStrategy registers a strategy for a platform
func (*StrategyRegistry) UnregisterStrategy ¶
func (r *StrategyRegistry) UnregisterStrategy(platform models.PlatformType)
UnregisterStrategy removes a registered platform strategy
Click to show internal directories.
Click to hide internal directories.