registry

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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