Versions in this module Expand all Collapse all v1 v1.0.0 Mar 7, 2026 Changes in this version + func DefaultRegistry() *entity.TransformerRegistry + type Closeable interface + Close func() error + type Format string + const JSON + const XML + const YAML + type Morpheus struct + func New(opts ...Option) *Morpheus + func (m *Morpheus) Convert(ctx context.Context, input any, from, to Format) (any, error) + func (m *Morpheus) DetectPII(ctx context.Context, data any) ([]port.PIIDetectionResult, error) + func (m *Morpheus) EvaluateRules(ctx context.Context, rules []string, data map[string]any) (map[string]any, []string, error) + func (m *Morpheus) ListTransformers() []string + func (m *Morpheus) MaskPII(ctx context.Context, data any) (any, error) + func (m *Morpheus) RegisterTransformer(t entity.Transformer) error + func (m *Morpheus) Registry() *entity.TransformerRegistry + func (m *Morpheus) Shutdown() error + func (m *Morpheus) Transform(name string, input any, params ...Params) (any, error) + func (m *Morpheus) TransformChain(names []string, input any) (any, error) + type Option func(*Morpheus) + func WithCache(cache port.CachePort) Option + func WithCacheTTL(ttl time.Duration) Option + func WithMetrics(metrics port.MetricsPort) Option + type Params map[string]any