Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReqMapperStep ¶ added in v1.7.0
func NewReqMapperStep(cfg *Config) (definition.Step, error)
NewReqMapperStep returns a handler step that applies the same reqmapper transformation logic.
Types ¶
type Config ¶
type Config struct {
Role string `yaml:"role"` // "bap" or "bpp"
MappingsFile string `yaml:"mappingsFile"` // required path to mappings YAML
}
Config represents the configuration for the request mapper plugin.
func BuildConfig ¶ added in v1.7.0
BuildConfig parses the generic plugin config map into a strongly typed reqmapper Config.
type MappingEngine ¶
type MappingEngine struct {
// contains filtered or unexported fields
}
MappingEngine handles JSONata-based transformations
func (*MappingEngine) GetMappingInfo ¶
func (e *MappingEngine) GetMappingInfo() map[string]interface{}
GetMappingInfo returns information about loaded mappings
func (*MappingEngine) ReloadMappings ¶
func (e *MappingEngine) ReloadMappings() error
ReloadMappings reloads all mapping files (useful for hot-reload scenarios)
Click to show internal directories.
Click to hide internal directories.