mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
24 lines
427 B
Go
24 lines
427 B
Go
package plugins
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
logging "github.com/hanzo-fi/go-libs/v5/pkg/observe/log"
|
|
"github.com/hanzo-fi/payments/pkg/domain/models"
|
|
)
|
|
|
|
type CreateFunc func(
|
|
models.ConnectorID,
|
|
string,
|
|
logging.Logger,
|
|
json.RawMessage,
|
|
) (models.Plugin, error)
|
|
|
|
type Registration struct {
|
|
PluginType models.PluginType
|
|
Capabilities []models.Capability
|
|
CreateFunc CreateFunc
|
|
PageSize uint64
|
|
RawConf any
|
|
}
|