Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RoutingConfig string `json:"routingConfig"`
}
Config holds the configuration for the Router plugin.
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router implements Router interface.
func New ¶
New initializes a new Router instance with the provided configuration. It loads and validates the routing rules from the specified YAML file. Returns an error if the configuration is invalid or the rules cannot be loaded.
func (*Router) Route ¶
Route determines the routing destination based on the request context. reqURL.Path holds the Beckn endpoint action already stripped of the module base path by the step layer (e.g. "search" or "catalog/subscription"). reqURL.RawQuery is forwarded verbatim to the upstream target URL.
Click to show internal directories.
Click to hide internal directories.