20 lines
615 B
Go
20 lines
615 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/beckn/beckn-onix/pkg/plugin/definition"
|
|
decrypter "github.com/beckn/beckn-onix/pkg/plugin/implementation/decrypter"
|
|
)
|
|
|
|
// decrypterProvider implements the definition.decrypterProvider interface.
|
|
type decrypterProvider struct{}
|
|
|
|
// New creates a new Decrypter instance using the provided configuration.
|
|
func (dp decrypterProvider) New(ctx context.Context, config map[string]string) (definition.Decrypter, func() error, error) {
|
|
return decrypter.New(ctx)
|
|
}
|
|
|
|
// Provider is the exported symbol that the plugin manager will look for.
|
|
var Provider = decrypterProvider{}
|