Documentation ¶
Overview ¶
Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- func AddExtraRetryableCodes(codes map[status.Group][]status.Code)
- func EnrollMemberIfNecessary(fabricSDK *fabsdk.FabricSDK, userID string) error
- func GetDefaultOrganizationConfig(fabricSDK *fabsdk.FabricSDK) (string, *fabapi.OrganizationConfig, error)
- func SetupClientConfFile() ([]byte, error)
- type CCResponse
- type Client
Constants ¶
View Source
const (
// ConfigUserID ..
ConfigUserID = configTreeNameFabricSDK + ".user.id"
)
Variables ¶
This section is empty.
Functions ¶
func AddExtraRetryableCodes ¶
AddExtraRetryableCodes Add extra retryable codes that are not part of SDK's default, but are needed for our application
func EnrollMemberIfNecessary ¶
EnrollMemberIfNecessary ..
func GetDefaultOrganizationConfig ¶
func GetDefaultOrganizationConfig(fabricSDK *fabsdk.FabricSDK) (string, *fabapi.OrganizationConfig, error)
GetDefaultOrganizationConfig ..
Types ¶
type Client ¶
type Client interface { // InvokeCC invokes a chancode on the specified channel InvokeCC(channelID string, chainCodeID string, args []string, transientData map[string][]byte) (data *CCResponse, err error) // QueryCC queries a chaincode QueryCC(maxAttempts int, channelID string, chainCodeID string, args []string, transientData map[string][]byte) (data *CCResponse, err error) // QueryCCAtPeer query a chaincode from specified peer QueryCCAtPeer(maxAttempts int, channelID string, chainCodeID string, args []string, transientData map[string][]byte, peerURL string) (data *CCResponse, err error) // QueryCCAtMSP query a chaincode from specified MSP QueryCCAtMSP(maxAttempts int, channelID string, chainCodeID string, args []string, transientData map[string][]byte, MSPID string) (data *CCResponse, err error) // QueryCCAtOwnOrg query a chaincode from within one's own organziation QueryCCAtOwnOrg(maxAttempts int, channelID string, chainCodeID string, args []string, transientData map[string][]byte) (data *CCResponse, err error) // ChannelClient returns a channel client for the given channel id ChannelClient(channelID string) (*channel.Client, error) // ConsortiumChannelID return channel ID of consortium channel ConsortiumChannelID() string // OrgChannelID return channel ID of own org OrgChannelID() string // CloseChannelClient (logically) closes a channel client obtained from a previous ChannelClient() call CloseChannelClient(client *channel.Client) // EventTimeoutSeconds returns the configured or default timeout value in seconds for chaincode/transaction event EventTimeoutSeconds() int // NewChannelProvider returns a channel provider based on fabricSDK field of client NewChannelProvider(channelID string) context.ChannelProvider // Close closes this client Close() }
Client ... *
- The Client object captures settings for a participating member as a fabric client to the hyperledger network *
Click to show internal directories.
Click to hide internal directories.