github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/protos/peer/query.proto (about) 1 /* 2 Copyright IBM Corp. 2017 All Rights Reserved. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 syntax = "proto3"; 18 19 option java_package = "org.hyperledger.fabric.protos.peer"; 20 option go_package = "github.com/hyperledger/fabric/protos/peer"; 21 22 package protos; 23 24 // ChaincodeQueryResponse returns information about each chaincode that pertains 25 // to a query in lscc.go, such as GetChaincodes (returns all chaincodes 26 // instantiated on a channel), and GetInstalledChaincodes (returns all chaincodes 27 // installed on a peer) 28 message ChaincodeQueryResponse { 29 repeated ChaincodeInfo chaincodes = 1; 30 } 31 32 // ChaincodeInfo contains general information about an installed/instantiated 33 // chaincode 34 message ChaincodeInfo { 35 string name = 1; 36 string version = 2; 37 // the path as specified by the install/instantiate transaction 38 string path = 3; 39 // the chaincode function upon instantiation and its arguments. This will be 40 // blank if the query is returning information about installed chaincodes. 41 string input = 4; 42 // the name of the ESCC for this chaincode. This will be 43 // blank if the query is returning information about installed chaincodes. 44 string escc = 5; 45 // the name of the VSCC for this chaincode. This will be 46 // blank if the query is returning information about installed chaincodes. 47 string vscc = 6; 48 } 49 50 // ChannelQueryResponse returns information about each channel that pertains 51 // to a query in lscc.go, such as GetChannels (returns all channels for a 52 // given peer) 53 message ChannelQueryResponse { 54 repeated ChannelInfo channels = 1; 55 } 56 57 // ChannelInfo contains general information about channels 58 message ChannelInfo { 59 string channel_id = 1; 60 }