forked from hyperledger/fabric-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defpkgsuite.go
34 lines (26 loc) · 986 Bytes
/
defpkgsuite.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package fabsdk
import (
"github.com/akorosmezey/fabric-sdk-go/pkg/core/logging/api"
"github.com/akorosmezey/fabric-sdk-go/pkg/core/logging/modlog"
sdkApi "github.com/akorosmezey/fabric-sdk-go/pkg/fabsdk/api"
"github.com/akorosmezey/fabric-sdk-go/pkg/fabsdk/factory/defcore"
"github.com/akorosmezey/fabric-sdk-go/pkg/fabsdk/factory/defmsp"
"github.com/akorosmezey/fabric-sdk-go/pkg/fabsdk/factory/defsvc"
)
type defPkgSuite struct{}
func (ps *defPkgSuite) Core() (sdkApi.CoreProviderFactory, error) {
return defcore.NewProviderFactory(), nil
}
func (ps *defPkgSuite) MSP() (sdkApi.MSPProviderFactory, error) {
return defmsp.NewProviderFactory(), nil
}
func (ps *defPkgSuite) Service() (sdkApi.ServiceProviderFactory, error) {
return defsvc.NewProviderFactory(), nil
}
func (ps *defPkgSuite) Logger() (api.LoggerProvider, error) {
return modlog.LoggerProvider(), nil
}