fabric-sdk-go: github.com/hyperledger/fabric-sdk-go Index | Files | Directories

package fabricsdk

import "github.com/hyperledger/fabric-sdk-go"

Package fabricsdk enables Go developers to build solutions that interact with Hyperledger Fabric.

Packages for end developer usage

pkg/fabsdk: The main package of the Fabric SDK. This package enables creation of contexts based on configuration. These contexts are used by the client packages listed below. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/fabsdk

pkg/client/channel: Provides channel transaction capabilities. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/channel

pkg/client/event: Provides channel event capabilities. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/event

pkg/client/ledger: Enables queries to a channel's underlying ledger. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/ledger

pkg/client/resmgmt: Provides resource management capabilities such as installing chaincode. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/resmgmt

pkg/client/msp: Enables identity management capability. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/msp

Basic workflow

1) Instantiate a fabsdk instance using a configuration.
   Note: fabsdk maintains caches so you should minimize instances of fabsdk itself.
2) Create a context based on a user and organization, using your fabsdk instance.
   Note: A channel context additionally requires the channel ID.
3) Create a client instance using its New func, passing the context.
   Note: you create a new client instance for each context you need.
4) Use the funcs provided by each client to create your solution!
5) Call fabsdk.Close() to release resources and caches.

Support for Hyperledger Fabric programming model

In order to support the 'Gateway' programming model, the following package is provided:

pkg/gateway: Enables Go developers to build client applications using the Hyperledger Fabric programming model as described in the 'Developing Applications' chapter of the Fabric documentation. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/gateway

Index

Package Files

doc.go

Directories

PathSynopsis
internal/github.com/hyperledger/fabric/bccsp
internal/github.com/hyperledger/fabric/bccsp/factory/pkcs11
internal/github.com/hyperledger/fabric/bccsp/factory/sw
internal/github.com/hyperledger/fabric/bccsp/pkcs11
internal/github.com/hyperledger/fabric/bccsp/signer
internal/github.com/hyperledger/fabric/bccsp/sw
internal/github.com/hyperledger/fabric/bccsp/utils
internal/github.com/hyperledger/fabric-ca/lib
internal/github.com/hyperledger/fabric-ca/lib/attrmgr
internal/github.com/hyperledger/fabric-ca/lib/client/credential
internal/github.com/hyperledger/fabric-ca/lib/client/credential/x509
internal/github.com/hyperledger/fabric-ca/lib/streamer
internal/github.com/hyperledger/fabric-ca/lib/tls
internal/github.com/hyperledger/fabric-ca/sdkinternal/pkg/api
internal/github.com/hyperledger/fabric-ca/sdkinternal/pkg/util
internal/github.com/hyperledger/fabric-ca/sdkpatch/cryptosuitebridge
internal/github.com/hyperledger/fabric-ca/sdkpatch/keyutil
internal/github.com/hyperledger/fabric-ca/sdkpatch/logbridge
internal/github.com/hyperledger/fabric/common/capabilities
internal/github.com/hyperledger/fabric/common/cauthdsl
internal/github.com/hyperledger/fabric/common/channelconfig
internal/github.com/hyperledger/fabric/common/configtx
internal/github.com/hyperledger/fabric/common/crypto
internal/github.com/hyperledger/fabric/common/genesis
internal/github.com/hyperledger/fabric/common/ledger
internal/github.com/hyperledger/fabric/common/metrics
internal/github.com/hyperledger/fabric/common/metrics/disabled
internal/github.com/hyperledger/fabric/common/metrics/internal/namer
internal/github.com/hyperledger/fabric/common/metrics/prometheus
internal/github.com/hyperledger/fabric/common/metrics/statsd
internal/github.com/hyperledger/fabric/common/metrics/statsd/goruntime
internal/github.com/hyperledger/fabric/common/policies
internal/github.com/hyperledger/fabric/common/policydsl
internal/github.com/hyperledger/fabric/common/tools/protolator
internal/github.com/hyperledger/fabric/common/tools/protolator/protoext
internal/github.com/hyperledger/fabric/common/tools/protolator/protoext/mspext
internal/github.com/hyperledger/fabric/common/util
internal/github.com/hyperledger/fabric/core/chaincode/persistence
internal/github.com/hyperledger/fabric/core/chaincode/platforms/golang
internal/github.com/hyperledger/fabric/core/chaincode/platforms/java
internal/github.com/hyperledger/fabric/core/chaincode/platforms/node
internal/github.com/hyperledger/fabric/core/chaincode/platforms/util
internal/github.com/hyperledger/fabric/core/common/ccprovider
internal/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/rwsetutil
internal/github.com/hyperledger/fabric/core/middleware
internal/github.com/hyperledger/fabric/core/operations
internal/github.com/hyperledger/fabric/discovery/client
internal/github.com/hyperledger/fabric/discovery/protoext
internal/github.com/hyperledger/fabric/gossip/protoext
internal/github.com/hyperledger/fabric/msp
internal/github.com/hyperledger/fabric/msp/cache
internal/github.com/hyperledger/fabric/protoutil
internal/github.com/hyperledger/fabric/sdkinternal/ccmetadata
internal/github.com/hyperledger/fabric/sdkinternal/configtxgen/encoder
internal/github.com/hyperledger/fabric/sdkinternal/configtxgen/genesisconfig
internal/github.com/hyperledger/fabric/sdkinternal/configtxlator/update
internal/github.com/hyperledger/fabric/sdkinternal/peer/packaging
internal/github.com/hyperledger/fabric/sdkinternal/pkg/identity
internal/github.com/hyperledger/fabric/sdkinternal/pkg/txflags
internal/github.com/hyperledger/fabric/sdkpatch/cachebridge
internal/github.com/hyperledger/fabric/sdkpatch/cryptosuitebridge
internal/github.com/hyperledger/fabric/sdkpatch/keyutil
internal/github.com/hyperledger/fabric/sdkpatch/logbridge
internal/github.com/hyperledger/fabric/sdkpatch/logbridge/httpadmin
pkg/client/channelPackage channel enables access to a channel on a Fabric network.
pkg/client/channel/invokePackage invoke provides the handlers for performing chaincode invocations.
pkg/client/common/discovery
pkg/client/common/discovery/dynamicdiscovery
pkg/client/common/discovery/greylist
pkg/client/common/discovery/staticdiscovery
pkg/client/common/filterPackage filter provides common filters (e.g.
pkg/client/common/mocks
pkg/client/common/random
pkg/client/common/selection/balancer
pkg/client/common/selection/dynamicselection
pkg/client/common/selection/dynamicselection/pgresolver
pkg/client/common/selection/fabricselection
pkg/client/common/selection/options
pkg/client/common/selection/sorter/balancedsorter
pkg/client/common/selection/sorter/blockheightsorter
pkg/client/common/selection/staticselection
pkg/client/common/verifierPackage verifier provides various verifier (e.g.
pkg/client/eventPackage event enables access to a channel events on a Fabric network.
pkg/client/ledgerPackage ledger enables ledger queries on specified channel on a Fabric network.
pkg/client/mspPackage msp enables creation and update of users on a Fabric network.
pkg/client/resmgmtCode generated by counterfeiter.
pkg/common/errors/multiPackage multi is an error type that holds multiple errors.
pkg/common/errors/retryPackage retry provides retransmission capabilities to fabric-sdk-go.
pkg/common/errors/statusPackage status defines metadata for errors returned by fabric-sdk-go.
pkg/common/loggingPackage logging enables setting custom logger implementation.
pkg/common/options
pkg/common/providers/context
pkg/common/providers/core
pkg/common/providers/fab
pkg/common/providers/msp
pkg/common/providers/test/mockcontextPackage mockcontext is a generated GoMock package.
pkg/common/providers/test/mockcorePackage mockcore is a generated GoMock package.
pkg/common/providers/test/mockfabPackage mockfab is a generated GoMock package.
pkg/common/providers/test/mockmspPackage mockmsp is a generated GoMock package.
pkg/context
pkg/core/config
pkg/core/config/comm
pkg/core/config/comm/tls
pkg/core/config/cryptoutil
pkg/core/config/endpoint
pkg/core/config/lookup
pkg/core/cryptosuite
pkg/core/cryptosuite/bccsp/multisuite
pkg/core/cryptosuite/bccsp/pkcs11
pkg/core/cryptosuite/bccsp/sw
pkg/core/cryptosuite/bccsp/wrapper
pkg/core/cryptosuite/common/pkcs11
pkg/core/logging/api
pkg/core/logging/metadata
pkg/core/logging/modlog
pkg/core/mocks
pkg/fab
pkg/fab/ccpackager/gopackager
pkg/fab/ccpackager/javapackager
pkg/fab/ccpackager/lifecycle
pkg/fab/ccpackager/nodepackager
pkg/fab/channel
pkg/fab/channel/membership
pkg/fab/chconfig
pkg/fab/comm
pkg/fab/discovery
pkg/fab/discovery/mocks
pkg/fab/events/api
pkg/fab/events/client
pkg/fab/events/client/dispatcher
pkg/fab/events/client/lbp
pkg/fab/events/client/mocks
pkg/fab/events/client/peerresolver
pkg/fab/events/client/peerresolver/balanced
pkg/fab/events/client/peerresolver/minblockheight
pkg/fab/events/client/peerresolver/preferorg
pkg/fab/events/client/peerresolver/preferpeer
pkg/fab/events/deliverclient
pkg/fab/events/deliverclient/connection
pkg/fab/events/deliverclient/dispatcher
pkg/fab/events/deliverclient/mocks
pkg/fab/events/deliverclient/seek
pkg/fab/events/endpoint
pkg/fab/events/mocks
pkg/fab/events/service
pkg/fab/events/service/blockfilter
pkg/fab/events/service/blockfilter/headertypefilter
pkg/fab/events/service/dispatcher
pkg/fab/events/service/mocks
pkg/fab/keyvaluestore
pkg/fab/mocks
pkg/fab/orderer
pkg/fab/peer
pkg/fab/resourcePackage resource provides access to fabric network resource management, typically using system channel queries.
pkg/fab/resource/genesisconfig
pkg/fabsdkPackage fabsdk enables client usage of a Hyperledger Fabric network.
pkg/fabsdk/api
pkg/fabsdk/factory/defcore
pkg/fabsdk/factory/defmsp
pkg/fabsdk/factory/defsvc
pkg/fabsdk/metrics
pkg/fabsdk/metrics/cfg
pkg/fabsdk/provider/chpvdr
pkg/fabsdk/provider/fabpvdr
pkg/fabsdk/provider/msppvdr
pkg/fabsdk/test/mocksdkapiPackage mocksdkapi is a generated GoMock package.
pkg/fab/signingmgr
pkg/fab/txnPackage txn enables creating, endorsing and sending transactions to Fabric peers and orderers.
pkg/gatewayPackage gateway enables Go developers to build client applications using the Hyperledger Fabric programming model as described in the 'Developing Applications' chapter of the Fabric documentation: https://hyperledger-fabric.readthedocs.io/en/master/developapps/developing_applications.html
pkg/msp
pkg/msp/api
pkg/msp/test/mockmsp
pkg/msp/test/mockmspapiPackage mockmspapi is a generated GoMock package.
pkg/util/concurrent/futurevalue
pkg/util/concurrent/lazycache
pkg/util/concurrent/lazyref
pkg/util/concurrent/rollingcounter
pkg/util/pathvar
pkg/util/protolator
pkg/util/test
test/integration
test/integration/e2e
test/integration/e2e/orgs
test/integration/util/runner
test/metadataPackage metadata contains variables used by tests
third_party/github.com/hyperledger/fabric/common/policydsl
third_party/github.com/hyperledger/fabric/core/common/ccprovider
third_party/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/rwsetutil
third_party/github.com/hyperledger/fabric/core/ledger/util

Updated 2020-07-30. Refresh now. Tools for package owners.