system

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Package system is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package system is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package system is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package system is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	CSCCName      = `cscc`
	QSCCName      = `qscc`
	LSCCName      = `lscc`
	LifecycleName = `_lifecycle`
)
View Source
const (
	JoinChain        string = "JoinChain"
	GetConfigBlock   string = "GetConfigBlock"
	GetChannels      string = "GetChannels"
	GetConfigTree    string = `GetConfigTree`    // HLF Peer V1.x
	GetChannelConfig string = "GetChannelConfig" // HLF Peer V2 +
)

These are function names from Invoke first parameter

Variables

View Source
var CSCCServiceSwagger []byte
View Source
var File_lifecycle_proto protoreflect.FileDescriptor
View Source
var LSCCServiceSwagger []byte
View Source
var LifecycleServiceSwagger []byte
View Source
var QSCCServiceSwagger []byte

Functions

func RegisterCSCCServiceHandler added in v0.7.4

func RegisterCSCCServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCSCCServiceHandler registers the http handlers for service CSCCService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCSCCServiceHandlerClient added in v0.7.4

func RegisterCSCCServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CSCCServiceClient) error

RegisterCSCCServiceHandlerClient registers the http handlers for service CSCCService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CSCCServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CSCCServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CSCCServiceClient" to call the correct interceptors.

func RegisterCSCCServiceHandlerFromEndpoint added in v0.7.4

func RegisterCSCCServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCSCCServiceHandlerFromEndpoint is same as RegisterCSCCServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCSCCServiceHandlerServer added in v0.7.4

func RegisterCSCCServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CSCCServiceServer) error

RegisterCSCCServiceHandlerServer registers the http handlers for service CSCCService to "mux". UnaryRPC :call CSCCServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterCSCCServiceServer added in v0.7.4

func RegisterCSCCServiceServer(s *grpc.Server, srv CSCCServiceServer)

func RegisterLSCCServiceHandler added in v0.7.4

func RegisterLSCCServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLSCCServiceHandler registers the http handlers for service LSCCService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLSCCServiceHandlerClient added in v0.7.4

func RegisterLSCCServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LSCCServiceClient) error

RegisterLSCCServiceHandlerClient registers the http handlers for service LSCCService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LSCCServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LSCCServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LSCCServiceClient" to call the correct interceptors.

func RegisterLSCCServiceHandlerFromEndpoint added in v0.7.4

func RegisterLSCCServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLSCCServiceHandlerFromEndpoint is same as RegisterLSCCServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLSCCServiceHandlerServer added in v0.7.4

func RegisterLSCCServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LSCCServiceServer) error

RegisterLSCCServiceHandlerServer registers the http handlers for service LSCCService to "mux". UnaryRPC :call LSCCServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterLSCCServiceServer added in v0.7.4

func RegisterLSCCServiceServer(s *grpc.Server, srv LSCCServiceServer)

func RegisterLifecycleServiceHandler added in v0.7.4

func RegisterLifecycleServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLifecycleServiceHandler registers the http handlers for service LifecycleService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLifecycleServiceHandlerClient added in v0.7.4

func RegisterLifecycleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LifecycleServiceClient) error

RegisterLifecycleServiceHandlerClient registers the http handlers for service LifecycleService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LifecycleServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LifecycleServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LifecycleServiceClient" to call the correct interceptors.

func RegisterLifecycleServiceHandlerFromEndpoint added in v0.7.4

func RegisterLifecycleServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLifecycleServiceHandlerFromEndpoint is same as RegisterLifecycleServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLifecycleServiceHandlerServer added in v0.7.4

func RegisterLifecycleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LifecycleServiceServer) error

RegisterLifecycleServiceHandlerServer registers the http handlers for service LifecycleService to "mux". UnaryRPC :call LifecycleServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterLifecycleServiceServer added in v0.7.4

func RegisterLifecycleServiceServer(s *grpc.Server, srv LifecycleServiceServer)

func RegisterQSCCServiceHandler added in v0.7.4

func RegisterQSCCServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQSCCServiceHandler registers the http handlers for service QSCCService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQSCCServiceHandlerClient added in v0.7.4

func RegisterQSCCServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QSCCServiceClient) error

RegisterQSCCServiceHandlerClient registers the http handlers for service QSCCService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QSCCServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QSCCServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QSCCServiceClient" to call the correct interceptors.

func RegisterQSCCServiceHandlerFromEndpoint added in v0.7.4

func RegisterQSCCServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQSCCServiceHandlerFromEndpoint is same as RegisterQSCCServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQSCCServiceHandlerServer added in v0.7.4

func RegisterQSCCServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QSCCServiceServer) error

RegisterQSCCServiceHandlerServer registers the http handlers for service QSCCService to "mux". UnaryRPC :call QSCCServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterQSCCServiceServer added in v0.7.4

func RegisterQSCCServiceServer(s *grpc.Server, srv QSCCServiceServer)

Types

type ApproveChaincodeDefinitionForMyOrgRequest added in v0.7.4

type ApproveChaincodeDefinitionForMyOrgRequest struct {
	Channel string                                            `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Args    *lifecycle.ApproveChaincodeDefinitionForMyOrgArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*ApproveChaincodeDefinitionForMyOrgRequest) Descriptor deprecated added in v0.7.4

func (*ApproveChaincodeDefinitionForMyOrgRequest) Descriptor() ([]byte, []int)

Deprecated: Use ApproveChaincodeDefinitionForMyOrgRequest.ProtoReflect.Descriptor instead.

func (*ApproveChaincodeDefinitionForMyOrgRequest) GetArgs added in v0.7.4

func (*ApproveChaincodeDefinitionForMyOrgRequest) GetChannel added in v0.7.4

func (*ApproveChaincodeDefinitionForMyOrgRequest) ProtoMessage added in v0.7.4

func (*ApproveChaincodeDefinitionForMyOrgRequest) ProtoReflect added in v0.7.4

func (*ApproveChaincodeDefinitionForMyOrgRequest) Reset added in v0.7.4

func (*ApproveChaincodeDefinitionForMyOrgRequest) String added in v0.7.4

type CSCCChannelsFetcher added in v0.7.4

type CSCCChannelsFetcher struct {
	Querier *tx.ProtoQuerier
}

func NewCSCCChannelsFetcher added in v0.7.4

func NewCSCCChannelsFetcher(querier api.Querier) *CSCCChannelsFetcher

func (*CSCCChannelsFetcher) GetChannels added in v0.7.4

type CSCCService added in v0.7.4

type CSCCService struct {
	UnimplementedCSCCServiceServer

	Querier         *tx.ProtoQuerier
	ChannelsFetcher *CSCCChannelsFetcher
	FabricVersion   hlfproto.FabricVersion
}

func NewCSCC

func NewCSCC(querier api.Querier, version hlfproto.FabricVersion) *CSCCService

func NewCSCCFromClient added in v0.7.4

func NewCSCCFromClient(client api.Core) *CSCCService

func (*CSCCService) GetChannelConfig added in v0.7.4

func (c *CSCCService) GetChannelConfig(ctx context.Context, request *GetChannelConfigRequest) (*common.Config, error)

func (*CSCCService) GetChannels added in v0.7.4

func (c *CSCCService) GetChannels(ctx context.Context, _ *empty.Empty) (*peer.ChannelQueryResponse, error)

func (*CSCCService) GetConfigBlock added in v0.7.4

func (c *CSCCService) GetConfigBlock(ctx context.Context, request *GetConfigBlockRequest) (*common.Block, error)

func (*CSCCService) JoinChain added in v0.7.4

func (c *CSCCService) JoinChain(ctx context.Context, request *JoinChainRequest) (*empty.Empty, error)

func (*CSCCService) ServiceDef added in v0.7.4

func (c *CSCCService) ServiceDef() ServiceDef

type CSCCServiceClient added in v0.7.4

type CSCCServiceClient interface {
	// GetChainInfo allows joining channel using presented genesis block
	JoinChain(ctx context.Context, in *JoinChainRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	GetChannels(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*peer.ChannelQueryResponse, error)
	// GetConfigBlock returns genesis block of channel
	GetConfigBlock(ctx context.Context, in *GetConfigBlockRequest, opts ...grpc.CallOption) (*common.Block, error)
	// GetChannelConfig returns channel configuration
	GetChannelConfig(ctx context.Context, in *GetChannelConfigRequest, opts ...grpc.CallOption) (*common.Config, error)
}

CSCCServiceClient is the client API for CSCCService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCSCCServiceClient added in v0.7.4

func NewCSCCServiceClient(cc grpc.ClientConnInterface) CSCCServiceClient

type CSCCServiceServer added in v0.7.4

type CSCCServiceServer interface {
	// GetChainInfo allows joining channel using presented genesis block
	JoinChain(context.Context, *JoinChainRequest) (*empty.Empty, error)
	GetChannels(context.Context, *empty.Empty) (*peer.ChannelQueryResponse, error)
	// GetConfigBlock returns genesis block of channel
	GetConfigBlock(context.Context, *GetConfigBlockRequest) (*common.Block, error)
	// GetChannelConfig returns channel configuration
	GetChannelConfig(context.Context, *GetChannelConfigRequest) (*common.Config, error)
}

CSCCServiceServer is the server API for CSCCService service.

type CheckCommitReadinessRequest added in v0.7.4

type CheckCommitReadinessRequest struct {
	Channel string                              `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Args    *lifecycle.CheckCommitReadinessArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckCommitReadinessRequest) Descriptor deprecated added in v0.7.4

func (*CheckCommitReadinessRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckCommitReadinessRequest.ProtoReflect.Descriptor instead.

func (*CheckCommitReadinessRequest) GetArgs added in v0.7.4

func (*CheckCommitReadinessRequest) GetChannel added in v0.7.4

func (x *CheckCommitReadinessRequest) GetChannel() string

func (*CheckCommitReadinessRequest) ProtoMessage added in v0.7.4

func (*CheckCommitReadinessRequest) ProtoMessage()

func (*CheckCommitReadinessRequest) ProtoReflect added in v0.7.4

func (*CheckCommitReadinessRequest) Reset added in v0.7.4

func (x *CheckCommitReadinessRequest) Reset()

func (*CheckCommitReadinessRequest) String added in v0.7.4

func (x *CheckCommitReadinessRequest) String() string

type CommitChaincodeDefinitionRequest added in v0.7.4

type CommitChaincodeDefinitionRequest struct {
	Channel string                                   `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Args    *lifecycle.CommitChaincodeDefinitionArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitChaincodeDefinitionRequest) Descriptor deprecated added in v0.7.4

func (*CommitChaincodeDefinitionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CommitChaincodeDefinitionRequest.ProtoReflect.Descriptor instead.

func (*CommitChaincodeDefinitionRequest) GetArgs added in v0.7.4

func (*CommitChaincodeDefinitionRequest) GetChannel added in v0.7.4

func (x *CommitChaincodeDefinitionRequest) GetChannel() string

func (*CommitChaincodeDefinitionRequest) ProtoMessage added in v0.7.4

func (*CommitChaincodeDefinitionRequest) ProtoMessage()

func (*CommitChaincodeDefinitionRequest) ProtoReflect added in v0.7.4

func (*CommitChaincodeDefinitionRequest) Reset added in v0.7.4

func (*CommitChaincodeDefinitionRequest) String added in v0.7.4

type DeployRequest added in v0.7.4

type DeployRequest struct {
	Channel          string                          `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	DeploymentSpec   *peer.ChaincodeDeploymentSpec   `protobuf:"bytes,2,opt,name=deployment_spec,json=deploymentSpec,proto3" json:"deployment_spec,omitempty"`
	Policy           *common.SignaturePolicyEnvelope `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"`
	ESCC             string                          `protobuf:"bytes,4,opt,name=ESCC,proto3" json:"ESCC,omitempty"`
	VSCC             string                          `protobuf:"bytes,5,opt,name=VSCC,proto3" json:"VSCC,omitempty"`
	CollectionConfig *common.CollectionConfigPackage `protobuf:"bytes,6,opt,name=collection_config,json=collectionConfig,proto3" json:"collection_config,omitempty"`
	Transient        map[string][]byte               `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DeployRequest) Descriptor deprecated added in v0.7.4

func (*DeployRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeployRequest.ProtoReflect.Descriptor instead.

func (*DeployRequest) GetChannel added in v0.7.4

func (x *DeployRequest) GetChannel() string

func (*DeployRequest) GetCollectionConfig added in v0.7.4

func (x *DeployRequest) GetCollectionConfig() *common.CollectionConfigPackage

func (*DeployRequest) GetDeploymentSpec added in v0.7.4

func (x *DeployRequest) GetDeploymentSpec() *peer.ChaincodeDeploymentSpec

func (*DeployRequest) GetESCC added in v0.7.4

func (x *DeployRequest) GetESCC() string

func (*DeployRequest) GetPolicy added in v0.7.4

func (*DeployRequest) GetTransient added in v0.7.4

func (x *DeployRequest) GetTransient() map[string][]byte

func (*DeployRequest) GetVSCC added in v0.7.4

func (x *DeployRequest) GetVSCC() string

func (*DeployRequest) ProtoMessage added in v0.7.4

func (*DeployRequest) ProtoMessage()

func (*DeployRequest) ProtoReflect added in v0.7.4

func (x *DeployRequest) ProtoReflect() protoreflect.Message

func (*DeployRequest) Reset added in v0.7.4

func (x *DeployRequest) Reset()

func (*DeployRequest) String added in v0.7.4

func (x *DeployRequest) String() string

type GetBlockByHashRequest added in v0.7.4

type GetBlockByHashRequest struct {
	ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"`
	BlockHash   []byte `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockByHashRequest) Descriptor deprecated added in v0.7.4

func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockByHashRequest.ProtoReflect.Descriptor instead.

func (*GetBlockByHashRequest) GetBlockHash added in v0.7.4

func (x *GetBlockByHashRequest) GetBlockHash() []byte

func (*GetBlockByHashRequest) GetChannelName added in v0.7.4

func (x *GetBlockByHashRequest) GetChannelName() string

func (*GetBlockByHashRequest) ProtoMessage added in v0.7.4

func (*GetBlockByHashRequest) ProtoMessage()

func (*GetBlockByHashRequest) ProtoReflect added in v0.7.4

func (x *GetBlockByHashRequest) ProtoReflect() protoreflect.Message

func (*GetBlockByHashRequest) Reset added in v0.7.4

func (x *GetBlockByHashRequest) Reset()

func (*GetBlockByHashRequest) String added in v0.7.4

func (x *GetBlockByHashRequest) String() string

type GetBlockByNumberRequest added in v0.7.4

type GetBlockByNumberRequest struct {
	ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"`
	BlockNumber int64  `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockByNumberRequest) Descriptor deprecated added in v0.7.4

func (*GetBlockByNumberRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockByNumberRequest.ProtoReflect.Descriptor instead.

func (*GetBlockByNumberRequest) GetBlockNumber added in v0.7.4

func (x *GetBlockByNumberRequest) GetBlockNumber() int64

func (*GetBlockByNumberRequest) GetChannelName added in v0.7.4

func (x *GetBlockByNumberRequest) GetChannelName() string

func (*GetBlockByNumberRequest) ProtoMessage added in v0.7.4

func (*GetBlockByNumberRequest) ProtoMessage()

func (*GetBlockByNumberRequest) ProtoReflect added in v0.7.4

func (x *GetBlockByNumberRequest) ProtoReflect() protoreflect.Message

func (*GetBlockByNumberRequest) Reset added in v0.7.4

func (x *GetBlockByNumberRequest) Reset()

func (*GetBlockByNumberRequest) String added in v0.7.4

func (x *GetBlockByNumberRequest) String() string

type GetBlockByTxIDRequest added in v0.7.4

type GetBlockByTxIDRequest struct {
	ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"`
	TxId        string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockByTxIDRequest) Descriptor deprecated added in v0.7.4

func (*GetBlockByTxIDRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockByTxIDRequest.ProtoReflect.Descriptor instead.

func (*GetBlockByTxIDRequest) GetChannelName added in v0.7.4

func (x *GetBlockByTxIDRequest) GetChannelName() string

func (*GetBlockByTxIDRequest) GetTxId added in v0.7.4

func (x *GetBlockByTxIDRequest) GetTxId() string

func (*GetBlockByTxIDRequest) ProtoMessage added in v0.7.4

func (*GetBlockByTxIDRequest) ProtoMessage()

func (*GetBlockByTxIDRequest) ProtoReflect added in v0.7.4

func (x *GetBlockByTxIDRequest) ProtoReflect() protoreflect.Message

func (*GetBlockByTxIDRequest) Reset added in v0.7.4

func (x *GetBlockByTxIDRequest) Reset()

func (*GetBlockByTxIDRequest) String added in v0.7.4

func (x *GetBlockByTxIDRequest) String() string

type GetChainInfoRequest added in v0.7.4

type GetChainInfoRequest struct {
	ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetChainInfoRequest) Descriptor deprecated added in v0.7.4

func (*GetChainInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetChainInfoRequest.ProtoReflect.Descriptor instead.

func (*GetChainInfoRequest) GetChannelName added in v0.7.4

func (x *GetChainInfoRequest) GetChannelName() string

func (*GetChainInfoRequest) ProtoMessage added in v0.7.4

func (*GetChainInfoRequest) ProtoMessage()

func (*GetChainInfoRequest) ProtoReflect added in v0.7.4

func (x *GetChainInfoRequest) ProtoReflect() protoreflect.Message

func (*GetChainInfoRequest) Reset added in v0.7.4

func (x *GetChainInfoRequest) Reset()

func (*GetChainInfoRequest) String added in v0.7.4

func (x *GetChainInfoRequest) String() string

type GetChaincodeDataRequest added in v0.7.4

type GetChaincodeDataRequest struct {
	Channel   string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Chaincode string `protobuf:"bytes,2,opt,name=chaincode,proto3" json:"chaincode,omitempty"`
	// contains filtered or unexported fields
}

func (*GetChaincodeDataRequest) Descriptor deprecated added in v0.7.4

func (*GetChaincodeDataRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetChaincodeDataRequest.ProtoReflect.Descriptor instead.

func (*GetChaincodeDataRequest) GetChaincode added in v0.7.4

func (x *GetChaincodeDataRequest) GetChaincode() string

func (*GetChaincodeDataRequest) GetChannel added in v0.7.4

func (x *GetChaincodeDataRequest) GetChannel() string

func (*GetChaincodeDataRequest) ProtoMessage added in v0.7.4

func (*GetChaincodeDataRequest) ProtoMessage()

func (*GetChaincodeDataRequest) ProtoReflect added in v0.7.4

func (x *GetChaincodeDataRequest) ProtoReflect() protoreflect.Message

func (*GetChaincodeDataRequest) Reset added in v0.7.4

func (x *GetChaincodeDataRequest) Reset()

func (*GetChaincodeDataRequest) String added in v0.7.4

func (x *GetChaincodeDataRequest) String() string

type GetChaincodesRequest added in v0.7.4

type GetChaincodesRequest struct {
	Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	// contains filtered or unexported fields
}

func (*GetChaincodesRequest) Descriptor deprecated added in v0.7.4

func (*GetChaincodesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetChaincodesRequest.ProtoReflect.Descriptor instead.

func (*GetChaincodesRequest) GetChannel added in v0.7.4

func (x *GetChaincodesRequest) GetChannel() string

func (*GetChaincodesRequest) ProtoMessage added in v0.7.4

func (*GetChaincodesRequest) ProtoMessage()

func (*GetChaincodesRequest) ProtoReflect added in v0.7.4

func (x *GetChaincodesRequest) ProtoReflect() protoreflect.Message

func (*GetChaincodesRequest) Reset added in v0.7.4

func (x *GetChaincodesRequest) Reset()

func (*GetChaincodesRequest) String added in v0.7.4

func (x *GetChaincodesRequest) String() string

type GetChannelConfigRequest added in v0.7.4

type GetChannelConfigRequest struct {
	Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	// contains filtered or unexported fields
}

func (*GetChannelConfigRequest) Descriptor deprecated added in v0.7.4

func (*GetChannelConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetChannelConfigRequest.ProtoReflect.Descriptor instead.

func (*GetChannelConfigRequest) GetChannel added in v0.7.4

func (x *GetChannelConfigRequest) GetChannel() string

func (*GetChannelConfigRequest) ProtoMessage added in v0.7.4

func (*GetChannelConfigRequest) ProtoMessage()

func (*GetChannelConfigRequest) ProtoReflect added in v0.7.4

func (x *GetChannelConfigRequest) ProtoReflect() protoreflect.Message

func (*GetChannelConfigRequest) Reset added in v0.7.4

func (x *GetChannelConfigRequest) Reset()

func (*GetChannelConfigRequest) String added in v0.7.4

func (x *GetChannelConfigRequest) String() string

type GetConfigBlockRequest added in v0.7.4

type GetConfigBlockRequest struct {
	Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	// contains filtered or unexported fields
}

func (*GetConfigBlockRequest) Descriptor deprecated added in v0.7.4

func (*GetConfigBlockRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetConfigBlockRequest.ProtoReflect.Descriptor instead.

func (*GetConfigBlockRequest) GetChannel added in v0.7.4

func (x *GetConfigBlockRequest) GetChannel() string

func (*GetConfigBlockRequest) ProtoMessage added in v0.7.4

func (*GetConfigBlockRequest) ProtoMessage()

func (*GetConfigBlockRequest) ProtoReflect added in v0.7.4

func (x *GetConfigBlockRequest) ProtoReflect() protoreflect.Message

func (*GetConfigBlockRequest) Reset added in v0.7.4

func (x *GetConfigBlockRequest) Reset()

func (*GetConfigBlockRequest) String added in v0.7.4

func (x *GetConfigBlockRequest) String() string

type GetDeploymentSpecRequest added in v0.7.4

type GetDeploymentSpecRequest struct {
	Channel   string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Chaincode string `protobuf:"bytes,2,opt,name=chaincode,proto3" json:"chaincode,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeploymentSpecRequest) Descriptor deprecated added in v0.7.4

func (*GetDeploymentSpecRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDeploymentSpecRequest.ProtoReflect.Descriptor instead.

func (*GetDeploymentSpecRequest) GetChaincode added in v0.7.4

func (x *GetDeploymentSpecRequest) GetChaincode() string

func (*GetDeploymentSpecRequest) GetChannel added in v0.7.4

func (x *GetDeploymentSpecRequest) GetChannel() string

func (*GetDeploymentSpecRequest) ProtoMessage added in v0.7.4

func (*GetDeploymentSpecRequest) ProtoMessage()

func (*GetDeploymentSpecRequest) ProtoReflect added in v0.7.4

func (x *GetDeploymentSpecRequest) ProtoReflect() protoreflect.Message

func (*GetDeploymentSpecRequest) Reset added in v0.7.4

func (x *GetDeploymentSpecRequest) Reset()

func (*GetDeploymentSpecRequest) String added in v0.7.4

func (x *GetDeploymentSpecRequest) String() string

type GetTransactionByIDRequest added in v0.7.4

type GetTransactionByIDRequest struct {
	ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"`
	TxId        string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTransactionByIDRequest) Descriptor deprecated added in v0.7.4

func (*GetTransactionByIDRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetTransactionByIDRequest.ProtoReflect.Descriptor instead.

func (*GetTransactionByIDRequest) GetChannelName added in v0.7.4

func (x *GetTransactionByIDRequest) GetChannelName() string

func (*GetTransactionByIDRequest) GetTxId added in v0.7.4

func (x *GetTransactionByIDRequest) GetTxId() string

func (*GetTransactionByIDRequest) ProtoMessage added in v0.7.4

func (*GetTransactionByIDRequest) ProtoMessage()

func (*GetTransactionByIDRequest) ProtoReflect added in v0.7.4

func (*GetTransactionByIDRequest) Reset added in v0.7.4

func (x *GetTransactionByIDRequest) Reset()

func (*GetTransactionByIDRequest) String added in v0.7.4

func (x *GetTransactionByIDRequest) String() string

type JoinChainRequest added in v0.7.4

type JoinChainRequest struct {
	Channel      string        `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	GenesisBlock *common.Block `protobuf:"bytes,2,opt,name=genesis_block,json=genesisBlock,proto3" json:"genesis_block,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinChainRequest) Descriptor deprecated added in v0.7.4

func (*JoinChainRequest) Descriptor() ([]byte, []int)

Deprecated: Use JoinChainRequest.ProtoReflect.Descriptor instead.

func (*JoinChainRequest) GetChannel added in v0.7.4

func (x *JoinChainRequest) GetChannel() string

func (*JoinChainRequest) GetGenesisBlock added in v0.7.4

func (x *JoinChainRequest) GetGenesisBlock() *common.Block

func (*JoinChainRequest) ProtoMessage added in v0.7.4

func (*JoinChainRequest) ProtoMessage()

func (*JoinChainRequest) ProtoReflect added in v0.7.4

func (x *JoinChainRequest) ProtoReflect() protoreflect.Message

func (*JoinChainRequest) Reset added in v0.7.4

func (x *JoinChainRequest) Reset()

func (*JoinChainRequest) String added in v0.7.4

func (x *JoinChainRequest) String() string

type LSCCService added in v0.7.4

type LSCCService struct {
	UnimplementedLSCCServiceServer

	Invoker api.Invoker
}

func NewLSCC

func NewLSCC(invoker api.Invoker) *LSCCService

func (*LSCCService) Deploy added in v0.7.4

func (l *LSCCService) Deploy(ctx context.Context, deploy *DeployRequest) (response *peer.Response, err error)

func (*LSCCService) GetChaincodeData added in v0.7.4

func (l *LSCCService) GetChaincodeData(ctx context.Context, getChaincodeData *GetChaincodeDataRequest) (*peer.ChaincodeData, error)

func (*LSCCService) GetChaincodes added in v0.7.4

func (l *LSCCService) GetChaincodes(ctx context.Context, getChaincodes *GetChaincodesRequest) (*peer.ChaincodeQueryResponse, error)

func (*LSCCService) GetDeploymentSpec added in v0.7.4

func (l *LSCCService) GetDeploymentSpec(ctx context.Context, getDeploymentSpec *GetDeploymentSpecRequest) (*peer.ChaincodeDeploymentSpec, error)

func (*LSCCService) GetInstalledChaincodes added in v0.7.4

func (l *LSCCService) GetInstalledChaincodes(ctx context.Context, _ *empty.Empty) (*peer.ChaincodeQueryResponse, error)

func (*LSCCService) Install added in v0.7.4

func (*LSCCService) ServiceDef added in v0.7.4

func (l *LSCCService) ServiceDef() ServiceDef

type LSCCServiceClient added in v0.7.4

type LSCCServiceClient interface {
	// GetChaincodeData returns information about instantiated chaincode on target channel
	GetChaincodeData(ctx context.Context, in *GetChaincodeDataRequest, opts ...grpc.CallOption) (*peer.ChaincodeData, error)
	// GetInstalledChaincodes returns list of installed chaincodes on peer
	GetInstalledChaincodes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*peer.ChaincodeQueryResponse, error)
	// GetChaincodes returns list of instantiated chaincodes on channel
	GetChaincodes(ctx context.Context, in *GetChaincodesRequest, opts ...grpc.CallOption) (*peer.ChaincodeQueryResponse, error)
	// GetDeploymentSpec returns spec for installed chaincode
	GetDeploymentSpec(ctx context.Context, in *GetDeploymentSpecRequest, opts ...grpc.CallOption) (*peer.ChaincodeDeploymentSpec, error)
	// Install allows installing chaincode using deployment specification
	Install(ctx context.Context, in *peer.ChaincodeDeploymentSpec, opts ...grpc.CallOption) (*empty.Empty, error)
	// Deploy allows instantiating or upgrade chaincode if instantiated
	// Currently, deploy method is not canonical as lscc implementation, but currently we need to get full proposal, and it's response to broadcast to orderer
	Deploy(ctx context.Context, in *DeployRequest, opts ...grpc.CallOption) (*peer.Response, error)
}

LSCCServiceClient is the client API for LSCCService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewLSCCServiceClient added in v0.7.4

func NewLSCCServiceClient(cc grpc.ClientConnInterface) LSCCServiceClient

type LSCCServiceServer added in v0.7.4

type LSCCServiceServer interface {
	// GetChaincodeData returns information about instantiated chaincode on target channel
	GetChaincodeData(context.Context, *GetChaincodeDataRequest) (*peer.ChaincodeData, error)
	// GetInstalledChaincodes returns list of installed chaincodes on peer
	GetInstalledChaincodes(context.Context, *empty.Empty) (*peer.ChaincodeQueryResponse, error)
	// GetChaincodes returns list of instantiated chaincodes on channel
	GetChaincodes(context.Context, *GetChaincodesRequest) (*peer.ChaincodeQueryResponse, error)
	// GetDeploymentSpec returns spec for installed chaincode
	GetDeploymentSpec(context.Context, *GetDeploymentSpecRequest) (*peer.ChaincodeDeploymentSpec, error)
	// Install allows installing chaincode using deployment specification
	Install(context.Context, *peer.ChaincodeDeploymentSpec) (*empty.Empty, error)
	// Deploy allows instantiating or upgrade chaincode if instantiated
	// Currently, deploy method is not canonical as lscc implementation, but currently we need to get full proposal, and it's response to broadcast to orderer
	Deploy(context.Context, *DeployRequest) (*peer.Response, error)
}

LSCCServiceServer is the server API for LSCCService service.

type LifecycleService added in v0.7.4

type LifecycleService struct {
	UnimplementedLifecycleServiceServer

	Invoker api.Invoker
}

func NewLifecycle added in v0.6.2

func NewLifecycle(invoker api.Invoker) *LifecycleService

func (*LifecycleService) ApproveChaincodeDefinitionForMyOrg added in v0.7.4

func (l *LifecycleService) ApproveChaincodeDefinitionForMyOrg(ctx context.Context,
	approveChaincodeDefinitionForMyOrg *ApproveChaincodeDefinitionForMyOrgRequest) (*empty.Empty, error)

func (*LifecycleService) CheckCommitReadiness added in v0.7.4

func (l *LifecycleService) CheckCommitReadiness(ctx context.Context, сheckCommitReadiness *CheckCommitReadinessRequest) (*lifecycleproto.CheckCommitReadinessResult, error)

func (*LifecycleService) CommitChaincodeDefinition added in v0.7.4

func (l *LifecycleService) CommitChaincodeDefinition(ctx context.Context, commitChaincodeDefinition *CommitChaincodeDefinitionRequest) (*lifecycleproto.CommitChaincodeDefinitionResult, error)

func (*LifecycleService) InstallChaincode added in v0.7.4

func (*LifecycleService) QueryApprovedChaincodeDefinition added in v0.7.4

func (l *LifecycleService) QueryApprovedChaincodeDefinition(ctx context.Context, queryApprovedChaincodeDefinition *QueryApprovedChaincodeDefinitionRequest) (*lifecycleproto.QueryApprovedChaincodeDefinitionResult, error)

func (*LifecycleService) QueryChaincodeDefinition added in v0.7.4

func (l *LifecycleService) QueryChaincodeDefinition(ctx context.Context, queryChaincodeDefinition *QueryChaincodeDefinitionRequest) (*lifecycleproto.QueryChaincodeDefinitionResult, error)

func (*LifecycleService) QueryChaincodeDefinitions added in v0.7.4

func (l *LifecycleService) QueryChaincodeDefinitions(ctx context.Context, queryChaincodeDefinitions *QueryChaincodeDefinitionsRequest) (*lifecycleproto.QueryChaincodeDefinitionsResult, error)

func (*LifecycleService) QueryInstalledChaincode added in v0.7.4

func (*LifecycleService) QueryInstalledChaincodes added in v0.7.4

func (*LifecycleService) ServiceDef added in v0.7.4

func (l *LifecycleService) ServiceDef() ServiceDef

type LifecycleServiceClient added in v0.7.4

type LifecycleServiceClient interface {
	// QueryInstalledChaincodes returns chaincode packages list installed on peer
	QueryInstalledChaincodes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*lifecycle.QueryInstalledChaincodesResult, error)
	// QueryInstalledChaincode returns chaincode package installed on peer
	QueryInstalledChaincode(ctx context.Context, in *lifecycle.QueryInstalledChaincodeArgs, opts ...grpc.CallOption) (*lifecycle.QueryInstalledChaincodeResult, error)
	// InstallChaincode sets up chaincode package on peer
	InstallChaincode(ctx context.Context, in *lifecycle.InstallChaincodeArgs, opts ...grpc.CallOption) (*lifecycle.InstallChaincodeResult, error)
	// ApproveChaincodeDefinitionForMyOrg marks chaincode definition on a channel
	ApproveChaincodeDefinitionForMyOrg(ctx context.Context, in *ApproveChaincodeDefinitionForMyOrgRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// QueryApprovedChaincodeDefinition returns approved chaincode definition
	QueryApprovedChaincodeDefinition(ctx context.Context, in *QueryApprovedChaincodeDefinitionRequest, opts ...grpc.CallOption) (*lifecycle.QueryApprovedChaincodeDefinitionResult, error)
	// CheckCommitReadiness returns commitments statuses of participants on chaincode definition
	CheckCommitReadiness(ctx context.Context, in *CheckCommitReadinessRequest, opts ...grpc.CallOption) (*lifecycle.CheckCommitReadinessResult, error)
	// CommitChaincodeDefinition the chaincode definition on the channel
	CommitChaincodeDefinition(ctx context.Context, in *CommitChaincodeDefinitionRequest, opts ...grpc.CallOption) (*lifecycle.CommitChaincodeDefinitionResult, error)
	// QueryChaincodeDefinition returns chaincode definition committed on the channel
	QueryChaincodeDefinition(ctx context.Context, in *QueryChaincodeDefinitionRequest, opts ...grpc.CallOption) (*lifecycle.QueryChaincodeDefinitionResult, error)
	// QueryChaincodeDefinitions returns chaincode definitions committed on the channel
	QueryChaincodeDefinitions(ctx context.Context, in *QueryChaincodeDefinitionsRequest, opts ...grpc.CallOption) (*lifecycle.QueryChaincodeDefinitionsResult, error)
}

LifecycleServiceClient is the client API for LifecycleService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewLifecycleServiceClient added in v0.7.4

func NewLifecycleServiceClient(cc grpc.ClientConnInterface) LifecycleServiceClient

type LifecycleServiceServer added in v0.7.4

type LifecycleServiceServer interface {
	// QueryInstalledChaincodes returns chaincode packages list installed on peer
	QueryInstalledChaincodes(context.Context, *empty.Empty) (*lifecycle.QueryInstalledChaincodesResult, error)
	// QueryInstalledChaincode returns chaincode package installed on peer
	QueryInstalledChaincode(context.Context, *lifecycle.QueryInstalledChaincodeArgs) (*lifecycle.QueryInstalledChaincodeResult, error)
	// InstallChaincode sets up chaincode package on peer
	InstallChaincode(context.Context, *lifecycle.InstallChaincodeArgs) (*lifecycle.InstallChaincodeResult, error)
	// ApproveChaincodeDefinitionForMyOrg marks chaincode definition on a channel
	ApproveChaincodeDefinitionForMyOrg(context.Context, *ApproveChaincodeDefinitionForMyOrgRequest) (*empty.Empty, error)
	// QueryApprovedChaincodeDefinition returns approved chaincode definition
	QueryApprovedChaincodeDefinition(context.Context, *QueryApprovedChaincodeDefinitionRequest) (*lifecycle.QueryApprovedChaincodeDefinitionResult, error)
	// CheckCommitReadiness returns commitments statuses of participants on chaincode definition
	CheckCommitReadiness(context.Context, *CheckCommitReadinessRequest) (*lifecycle.CheckCommitReadinessResult, error)
	// CommitChaincodeDefinition the chaincode definition on the channel
	CommitChaincodeDefinition(context.Context, *CommitChaincodeDefinitionRequest) (*lifecycle.CommitChaincodeDefinitionResult, error)
	// QueryChaincodeDefinition returns chaincode definition committed on the channel
	QueryChaincodeDefinition(context.Context, *QueryChaincodeDefinitionRequest) (*lifecycle.QueryChaincodeDefinitionResult, error)
	// QueryChaincodeDefinitions returns chaincode definitions committed on the channel
	QueryChaincodeDefinitions(context.Context, *QueryChaincodeDefinitionsRequest) (*lifecycle.QueryChaincodeDefinitionsResult, error)
}

LifecycleServiceServer is the server API for LifecycleService service.

type QSCCService added in v0.7.4

type QSCCService struct {
	UnimplementedQSCCServiceServer
	Querier *tx.ProtoQuerier
}

func NewQSCC

func NewQSCC(querier api.Querier) *QSCCService

func (*QSCCService) GetBlockByHash added in v0.7.4

func (q *QSCCService) GetBlockByHash(ctx context.Context, request *GetBlockByHashRequest) (*common.Block, error)

func (*QSCCService) GetBlockByNumber added in v0.7.4

func (q *QSCCService) GetBlockByNumber(ctx context.Context, request *GetBlockByNumberRequest) (*common.Block, error)

func (*QSCCService) GetBlockByTxID added in v0.7.4

func (q *QSCCService) GetBlockByTxID(ctx context.Context, request *GetBlockByTxIDRequest) (*common.Block, error)

func (*QSCCService) GetChainInfo added in v0.7.4

func (q *QSCCService) GetChainInfo(ctx context.Context, request *GetChainInfoRequest) (*common.BlockchainInfo, error)

func (*QSCCService) GetTransactionByID added in v0.7.4

func (q *QSCCService) GetTransactionByID(ctx context.Context, request *GetTransactionByIDRequest) (*peer.ProcessedTransaction, error)

func (*QSCCService) ServiceDef added in v0.7.4

func (q *QSCCService) ServiceDef() ServiceDef

type QSCCServiceClient added in v0.7.4

type QSCCServiceClient interface {
	// GetChainInfo allows getting common info about channel blockchain
	GetChainInfo(ctx context.Context, in *GetChainInfoRequest, opts ...grpc.CallOption) (*common.BlockchainInfo, error)
	// GetBlockByNumber allows getting block by number
	GetBlockByNumber(ctx context.Context, in *GetBlockByNumberRequest, opts ...grpc.CallOption) (*common.Block, error)
	// GetBlockByHash allows getting block by hash
	GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*common.Block, error)
	// GetBlockByTxID allows getting block by transaction
	GetBlockByTxID(ctx context.Context, in *GetBlockByTxIDRequest, opts ...grpc.CallOption) (*common.Block, error)
	// GetTransactionByID allows getting transaction by id
	GetTransactionByID(ctx context.Context, in *GetTransactionByIDRequest, opts ...grpc.CallOption) (*peer.ProcessedTransaction, error)
}

QSCCServiceClient is the client API for QSCCService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQSCCServiceClient added in v0.7.4

func NewQSCCServiceClient(cc grpc.ClientConnInterface) QSCCServiceClient

type QSCCServiceServer added in v0.7.4

type QSCCServiceServer interface {
	// GetChainInfo allows getting common info about channel blockchain
	GetChainInfo(context.Context, *GetChainInfoRequest) (*common.BlockchainInfo, error)
	// GetBlockByNumber allows getting block by number
	GetBlockByNumber(context.Context, *GetBlockByNumberRequest) (*common.Block, error)
	// GetBlockByHash allows getting block by hash
	GetBlockByHash(context.Context, *GetBlockByHashRequest) (*common.Block, error)
	// GetBlockByTxID allows getting block by transaction
	GetBlockByTxID(context.Context, *GetBlockByTxIDRequest) (*common.Block, error)
	// GetTransactionByID allows getting transaction by id
	GetTransactionByID(context.Context, *GetTransactionByIDRequest) (*peer.ProcessedTransaction, error)
}

QSCCServiceServer is the server API for QSCCService service.

type QueryApprovedChaincodeDefinitionRequest added in v0.7.4

type QueryApprovedChaincodeDefinitionRequest struct {
	Channel string                                          `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Args    *lifecycle.QueryApprovedChaincodeDefinitionArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryApprovedChaincodeDefinitionRequest) Descriptor deprecated added in v0.7.4

func (*QueryApprovedChaincodeDefinitionRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryApprovedChaincodeDefinitionRequest.ProtoReflect.Descriptor instead.

func (*QueryApprovedChaincodeDefinitionRequest) GetArgs added in v0.7.4

func (*QueryApprovedChaincodeDefinitionRequest) GetChannel added in v0.7.4

func (*QueryApprovedChaincodeDefinitionRequest) ProtoMessage added in v0.7.4

func (*QueryApprovedChaincodeDefinitionRequest) ProtoReflect added in v0.7.4

func (*QueryApprovedChaincodeDefinitionRequest) Reset added in v0.7.4

func (*QueryApprovedChaincodeDefinitionRequest) String added in v0.7.4

type QueryChaincodeDefinitionRequest added in v0.7.4

type QueryChaincodeDefinitionRequest struct {
	Channel string                                  `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Args    *lifecycle.QueryChaincodeDefinitionArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryChaincodeDefinitionRequest) Descriptor deprecated added in v0.7.4

func (*QueryChaincodeDefinitionRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryChaincodeDefinitionRequest.ProtoReflect.Descriptor instead.

func (*QueryChaincodeDefinitionRequest) GetArgs added in v0.7.4

func (*QueryChaincodeDefinitionRequest) GetChannel added in v0.7.4

func (x *QueryChaincodeDefinitionRequest) GetChannel() string

func (*QueryChaincodeDefinitionRequest) ProtoMessage added in v0.7.4

func (*QueryChaincodeDefinitionRequest) ProtoMessage()

func (*QueryChaincodeDefinitionRequest) ProtoReflect added in v0.7.4

func (*QueryChaincodeDefinitionRequest) Reset added in v0.7.4

func (*QueryChaincodeDefinitionRequest) String added in v0.7.4

type QueryChaincodeDefinitionsRequest added in v0.7.4

type QueryChaincodeDefinitionsRequest struct {
	Channel string                                   `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Args    *lifecycle.QueryChaincodeDefinitionsArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryChaincodeDefinitionsRequest) Descriptor deprecated added in v0.7.4

func (*QueryChaincodeDefinitionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryChaincodeDefinitionsRequest.ProtoReflect.Descriptor instead.

func (*QueryChaincodeDefinitionsRequest) GetArgs added in v0.7.4

func (*QueryChaincodeDefinitionsRequest) GetChannel added in v0.7.4

func (x *QueryChaincodeDefinitionsRequest) GetChannel() string

func (*QueryChaincodeDefinitionsRequest) ProtoMessage added in v0.7.4

func (*QueryChaincodeDefinitionsRequest) ProtoMessage()

func (*QueryChaincodeDefinitionsRequest) ProtoReflect added in v0.7.4

func (*QueryChaincodeDefinitionsRequest) Reset added in v0.7.4

func (*QueryChaincodeDefinitionsRequest) String added in v0.7.4

type RegisterHandlerFromEndpoint added in v0.7.4

type RegisterHandlerFromEndpoint func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

type Service added in v0.7.4

type Service interface {
	Name() string
	Swagger() []byte
	GRPCDesc() *grpc.ServiceDesc
	Impl() interface{}
	GRPCGatewayRegister() func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
}

type ServiceDef added in v0.7.4

type ServiceDef struct {
	Desc                        *grpc.ServiceDesc
	Service                     interface{}
	HandlerFromEndpointRegister RegisterHandlerFromEndpoint
	// contains filtered or unexported fields
}

func NewServiceDef added in v0.7.4

func NewServiceDef(name string, swagger []byte, desc *grpc.ServiceDesc, service interface{}, registerHandler RegisterHandlerFromEndpoint) ServiceDef

func (ServiceDef) GRPCDesc added in v0.7.4

func (s ServiceDef) GRPCDesc() *grpc.ServiceDesc

func (ServiceDef) GRPCGatewayRegister added in v0.7.4

func (s ServiceDef) GRPCGatewayRegister() func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

func (ServiceDef) Impl added in v0.7.4

func (s ServiceDef) Impl() interface{}

func (ServiceDef) Name added in v0.7.4

func (s ServiceDef) Name() string

func (ServiceDef) Swagger added in v0.7.4

func (s ServiceDef) Swagger() []byte

type UnimplementedCSCCServiceServer added in v0.7.4

type UnimplementedCSCCServiceServer struct {
}

UnimplementedCSCCServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCSCCServiceServer) GetChannelConfig added in v0.7.4

func (*UnimplementedCSCCServiceServer) GetChannels added in v0.7.4

func (*UnimplementedCSCCServiceServer) GetConfigBlock added in v0.7.4

func (*UnimplementedCSCCServiceServer) JoinChain added in v0.7.4

type UnimplementedLSCCServiceServer added in v0.7.4

type UnimplementedLSCCServiceServer struct {
}

UnimplementedLSCCServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedLSCCServiceServer) Deploy added in v0.7.4

func (*UnimplementedLSCCServiceServer) GetChaincodeData added in v0.7.4

func (*UnimplementedLSCCServiceServer) GetChaincodes added in v0.7.4

func (*UnimplementedLSCCServiceServer) GetDeploymentSpec added in v0.7.4

func (*UnimplementedLSCCServiceServer) GetInstalledChaincodes added in v0.7.4

func (*UnimplementedLSCCServiceServer) Install added in v0.7.4

type UnimplementedLifecycleServiceServer added in v0.7.4

type UnimplementedLifecycleServiceServer struct {
}

UnimplementedLifecycleServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedLifecycleServiceServer) ApproveChaincodeDefinitionForMyOrg added in v0.7.4

func (*UnimplementedLifecycleServiceServer) CheckCommitReadiness added in v0.7.4

func (*UnimplementedLifecycleServiceServer) CommitChaincodeDefinition added in v0.7.4

func (*UnimplementedLifecycleServiceServer) InstallChaincode added in v0.7.4

func (*UnimplementedLifecycleServiceServer) QueryApprovedChaincodeDefinition added in v0.7.4

func (*UnimplementedLifecycleServiceServer) QueryChaincodeDefinition added in v0.7.4

func (*UnimplementedLifecycleServiceServer) QueryChaincodeDefinitions added in v0.7.4

func (*UnimplementedLifecycleServiceServer) QueryInstalledChaincode added in v0.7.4

func (*UnimplementedLifecycleServiceServer) QueryInstalledChaincodes added in v0.7.4

type UnimplementedQSCCServiceServer added in v0.7.4

type UnimplementedQSCCServiceServer struct {
}

UnimplementedQSCCServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQSCCServiceServer) GetBlockByHash added in v0.7.4

func (*UnimplementedQSCCServiceServer) GetBlockByNumber added in v0.7.4

func (*UnimplementedQSCCServiceServer) GetBlockByTxID added in v0.7.4

func (*UnimplementedQSCCServiceServer) GetChainInfo added in v0.7.4

func (*UnimplementedQSCCServiceServer) GetTransactionByID added in v0.7.4

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL