Files
onix/pkg/plugin/definition/registry.go
2025-09-18 22:43:04 +05:30

18 lines
495 B
Go

package definition
import (
"context"
"github.com/beckn-one/beckn-onix/pkg/model"
)
type RegistryLookup interface {
// looks up Registry entry to obtain public keys to validate signature of the incoming message
Lookup(ctx context.Context, req *model.Subscription) ([]model.Subscription, error)
}
// RegistryLookupProvider initializes a new registry lookup instance.
type RegistryLookupProvider interface {
New(context.Context, map[string]string) (RegistryLookup, func() error, error)
}