-
Notifications
You must be signed in to change notification settings - Fork 2
/
api.go
25 lines (21 loc) · 1006 Bytes
/
api.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
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package api
//SnapTransactionRequest type will be passed as argument to a transaction snap
//ChannelID and ChaincodeID are mandatory fields
type SnapTransactionRequest struct {
ChannelID string // required channel ID
ChaincodeID string // required chaincode ID
TransientMap map[string][]byte // optional transient Map
EndorserArgs [][]byte // optional args for endorsement
CCIDsForEndorsement []string // optional ccIDs For endorsement selection
RegisterTxEvent bool // optional args for register Tx event (default is false)
PeerFilter *PeerFilterOpts // optional peer filter
RWSetIgnoreNameSpace []string // RWSetIgnoreNameSpace rw set ignore list
}
// ClientService interface
type ClientService interface {
GetFabricClient(channelID string, config Config) (Client, error)
}