added updated code for core wiring
1. Removed tracing 2. Skipped Registration
This commit is contained in:
16
pkg/plugin/definition/router.go
Normal file
16
pkg/plugin/definition/router.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package definition
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/url"
|
||||
|
||||
"github.com/beckn/beckn-onix/pkg/model"
|
||||
)
|
||||
|
||||
type Router interface {
|
||||
Route(ctx context.Context, url *url.URL, body []byte) (*model.Route, error)
|
||||
}
|
||||
|
||||
type RouterProvider interface {
|
||||
New(ctx context.Context, cfg map[string]string) (Router, error)
|
||||
}
|
||||
Reference in New Issue
Block a user