github.com/true-sqn/fabric@v2.1.1+incompatible/integration/pluggable/testdata/plugins/validation/plugin.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package main 8 9 import ( 10 validation "github.com/hyperledger/fabric/core/handlers/validation/api" 11 "github.com/hyperledger/fabric/core/handlers/validation/builtin" 12 "github.com/hyperledger/fabric/integration/pluggable" 13 ) 14 15 // go build -buildmode=plugin -o plugin.so 16 17 // NewPluginFactory is the function ran by the plugin infrastructure to create a validation plugin factory. 18 func NewPluginFactory() validation.PluginFactory { 19 pluggable.PublishValidationPluginActivation() 20 return &builtin.DefaultValidationFactory{} 21 }