Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2016 Changes in this version + var BuildResult_StatusCode_name = map[int32]string + var BuildResult_StatusCode_value = map[string]int32 + var ChaincodeMessage_Type_name = map[int32]string + var ChaincodeMessage_Type_value = map[string]int32 + var ChaincodeSpec_Type_name = map[int32]string + var ChaincodeSpec_Type_value = map[string]int32 + var ConfidentialityLevel_name = map[int32]string + var ConfidentialityLevel_value = map[string]int32 + var Interest_ResponseType_name = map[int32]string + var Interest_ResponseType_value = map[string]int32 + var OpenchainMessage_Type_name = map[int32]string + var OpenchainMessage_Type_value = map[string]int32 + var PeerEndpoint_Type_name = map[int32]string + var PeerEndpoint_Type_value = map[string]int32 + var Response_StatusCode_name = map[int32]string + var Response_StatusCode_value = map[string]int32 + var ServerStatus_StatusCode_name = map[int32]string + var ServerStatus_StatusCode_value = map[string]int32 + var Transaction_Type_name = map[int32]string + var Transaction_Type_value = map[string]int32 + func RegisterAdminServer(s *grpc.Server, srv AdminServer) + func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer) + func RegisterDevopsServer(s *grpc.Server, srv DevopsServer) + func RegisterOpenchainEventsServer(s *grpc.Server, srv OpenchainEventsServer) + func RegisterOpenchainServer(s *grpc.Server, srv OpenchainServer) + func RegisterPeerServer(s *grpc.Server, srv PeerServer) + type AdminClient interface + GetStatus func(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*ServerStatus, error) + StartServer func(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*ServerStatus, error) + StopServer func(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*ServerStatus, error) + func NewAdminClient(cc *grpc.ClientConn) AdminClient + type AdminServer interface + GetStatus func(context.Context, *google_protobuf1.Empty) (*ServerStatus, error) + StartServer func(context.Context, *google_protobuf1.Empty) (*ServerStatus, error) + StopServer func(context.Context, *google_protobuf1.Empty) (*ServerStatus, error) + type Block struct + ConsensusMetadata []byte + NonHashData *NonHashData + PreviousBlockHash []byte + StateHash []byte + Timestamp *google_protobuf.Timestamp + Transactions []*Transaction + Version uint32 + func NewBlock(transactions []*Transaction, metadata []byte) *Block + func UnmarshallBlock(blockBytes []byte) (*Block, error) + func (*Block) ProtoMessage() + func (block *Block) Bytes() ([]byte, error) + func (block *Block) GetHash() ([]byte, error) + func (block *Block) GetStateHash() []byte + func (block *Block) SetPreviousBlockHash(previousBlockHash []byte) + func (m *Block) GetNonHashData() *NonHashData + func (m *Block) GetTimestamp() *google_protobuf.Timestamp + func (m *Block) GetTransactions() []*Transaction + func (m *Block) Reset() + func (m *Block) String() string + type BlockCount struct + Count uint64 + func (*BlockCount) ProtoMessage() + func (m *BlockCount) Reset() + func (m *BlockCount) String() string + type BlockNumber struct + Number uint64 + func (*BlockNumber) ProtoMessage() + func (m *BlockNumber) Reset() + func (m *BlockNumber) String() string + type BlockState struct + Block *Block + StateDelta []byte + func (*BlockState) ProtoMessage() + func (m *BlockState) GetBlock() *Block + func (m *BlockState) Reset() + func (m *BlockState) String() string + type BlockchainInfo struct + CurrentBlockHash []byte + Height uint64 + PreviousBlockHash []byte + func (*BlockchainInfo) ProtoMessage() + func (m *BlockchainInfo) Reset() + func (m *BlockchainInfo) String() string + type BuildResult struct + DeploymentSpec *ChaincodeDeploymentSpec + Msg string + Status BuildResult_StatusCode + func (*BuildResult) ProtoMessage() + func (m *BuildResult) GetDeploymentSpec() *ChaincodeDeploymentSpec + func (m *BuildResult) Reset() + func (m *BuildResult) String() string + type BuildResult_StatusCode int32 + const BuildResult_FAILURE + const BuildResult_SUCCESS + const BuildResult_UNDEFINED + func (x BuildResult_StatusCode) String() string + type ChaincodeDeploymentSpec struct + ChaincodeSpec *ChaincodeSpec + CodePackage []byte + EffectiveDate *google_protobuf.Timestamp + func (*ChaincodeDeploymentSpec) ProtoMessage() + func (m *ChaincodeDeploymentSpec) GetChaincodeSpec() *ChaincodeSpec + func (m *ChaincodeDeploymentSpec) GetEffectiveDate() *google_protobuf.Timestamp + func (m *ChaincodeDeploymentSpec) Reset() + func (m *ChaincodeDeploymentSpec) String() string + type ChaincodeExecutionContext struct + ChaincodeId *ChaincodeIdentifier + Timestamp *google_protobuf.Timestamp + func (*ChaincodeExecutionContext) ProtoMessage() + func (m *ChaincodeExecutionContext) GetChaincodeId() *ChaincodeIdentifier + func (m *ChaincodeExecutionContext) GetTimestamp() *google_protobuf.Timestamp + func (m *ChaincodeExecutionContext) Reset() + func (m *ChaincodeExecutionContext) String() string + type ChaincodeID struct + Name string + Path string + func (*ChaincodeID) ProtoMessage() + func (m *ChaincodeID) Reset() + func (m *ChaincodeID) String() string + type ChaincodeIdentifier struct + Url string + func (*ChaincodeIdentifier) ProtoMessage() + func (m *ChaincodeIdentifier) Reset() + func (m *ChaincodeIdentifier) String() string + type ChaincodeInput struct + Args []string + Function string + func (*ChaincodeInput) ProtoMessage() + func (m *ChaincodeInput) Reset() + func (m *ChaincodeInput) String() string + type ChaincodeInvocationSpec struct + ChaincodeSpec *ChaincodeSpec + func (*ChaincodeInvocationSpec) ProtoMessage() + func (m *ChaincodeInvocationSpec) GetChaincodeSpec() *ChaincodeSpec + func (m *ChaincodeInvocationSpec) Reset() + func (m *ChaincodeInvocationSpec) String() string + type ChaincodeMessage struct + Payload []byte + Timestamp *google_protobuf.Timestamp + Type ChaincodeMessage_Type + Uuid string + func (*ChaincodeMessage) ProtoMessage() + func (m *ChaincodeMessage) GetTimestamp() *google_protobuf.Timestamp + func (m *ChaincodeMessage) Reset() + func (m *ChaincodeMessage) String() string + type ChaincodeMessage_Type int32 + const ChaincodeMessage_COMPLETED + const ChaincodeMessage_DEL_STATE + const ChaincodeMessage_ERROR + const ChaincodeMessage_GET_STATE + const ChaincodeMessage_INIT + const ChaincodeMessage_INVOKE_CHAINCODE + const ChaincodeMessage_INVOKE_QUERY + const ChaincodeMessage_PUT_STATE + const ChaincodeMessage_QUERY + const ChaincodeMessage_QUERY_COMPLETED + const ChaincodeMessage_QUERY_ERROR + const ChaincodeMessage_RANGE_QUERY_STATE + const ChaincodeMessage_RANGE_QUERY_STATE_CLOSE + const ChaincodeMessage_RANGE_QUERY_STATE_NEXT + const ChaincodeMessage_READY + const ChaincodeMessage_REGISTER + const ChaincodeMessage_REGISTERED + const ChaincodeMessage_RESPONSE + const ChaincodeMessage_TRANSACTION + const ChaincodeMessage_UNDEFINED + func (x ChaincodeMessage_Type) String() string + type ChaincodeRequestContext struct + Id *ChaincodeIdentifier + func (*ChaincodeRequestContext) ProtoMessage() + func (m *ChaincodeRequestContext) GetId() *ChaincodeIdentifier + func (m *ChaincodeRequestContext) Reset() + func (m *ChaincodeRequestContext) String() string + type ChaincodeSpec struct + ChaincodeID *ChaincodeID + ConfidentialityLevel ConfidentialityLevel + CtorMsg *ChaincodeInput + Metadata []byte + SecureContext string + Timeout int32 + Type ChaincodeSpec_Type + func (*ChaincodeSpec) ProtoMessage() + func (m *ChaincodeSpec) GetChaincodeID() *ChaincodeID + func (m *ChaincodeSpec) GetCtorMsg() *ChaincodeInput + func (m *ChaincodeSpec) Reset() + func (m *ChaincodeSpec) String() string + type ChaincodeSpec_Type int32 + const ChaincodeSpec_GOLANG + const ChaincodeSpec_NODE + const ChaincodeSpec_UNDEFINED + func (x ChaincodeSpec_Type) String() string + type ChaincodeSupportClient interface + GetExecutionContext func(ctx context.Context, in *ChaincodeRequestContext, opts ...grpc.CallOption) (*ChaincodeExecutionContext, error) + Register func(ctx context.Context, opts ...grpc.CallOption) (ChaincodeSupport_RegisterClient, error) + func NewChaincodeSupportClient(cc *grpc.ClientConn) ChaincodeSupportClient + type ChaincodeSupportServer interface + GetExecutionContext func(context.Context, *ChaincodeRequestContext) (*ChaincodeExecutionContext, error) + Register func(ChaincodeSupport_RegisterServer) error + type ChaincodeSupport_RegisterClient interface + Recv func() (*ChaincodeMessage, error) + Send func(*ChaincodeMessage) error + type ChaincodeSupport_RegisterServer interface + Recv func() (*ChaincodeMessage, error) + Send func(*ChaincodeMessage) error + type ConfidentialityLevel int32 + const ConfidentialityLevel_CONFIDENTIAL + const ConfidentialityLevel_PUBLIC + func (x ConfidentialityLevel) String() string + type DevopsClient interface + Build func(ctx context.Context, in *ChaincodeSpec, opts ...grpc.CallOption) (*ChaincodeDeploymentSpec, error) + Deploy func(ctx context.Context, in *ChaincodeSpec, opts ...grpc.CallOption) (*ChaincodeDeploymentSpec, error) + Invoke func(ctx context.Context, in *ChaincodeInvocationSpec, opts ...grpc.CallOption) (*Response, error) + Login func(ctx context.Context, in *Secret, opts ...grpc.CallOption) (*Response, error) + Query func(ctx context.Context, in *ChaincodeInvocationSpec, opts ...grpc.CallOption) (*Response, error) + func NewDevopsClient(cc *grpc.ClientConn) DevopsClient + type DevopsServer interface + Build func(context.Context, *ChaincodeSpec) (*ChaincodeDeploymentSpec, error) + Deploy func(context.Context, *ChaincodeSpec) (*ChaincodeDeploymentSpec, error) + Invoke func(context.Context, *ChaincodeInvocationSpec) (*Response, error) + Login func(context.Context, *Secret) (*Response, error) + Query func(context.Context, *ChaincodeInvocationSpec) (*Response, error) + type Generic struct + EventType string + Payload []byte + func (*Generic) ProtoMessage() + func (m *Generic) Reset() + func (m *Generic) String() string + type HelloMessage struct + BlockNumber uint64 + PeerEndpoint *PeerEndpoint + func (*HelloMessage) ProtoMessage() + func (m *HelloMessage) GetPeerEndpoint() *PeerEndpoint + func (m *HelloMessage) Reset() + func (m *HelloMessage) String() string + type Interest struct + EventType string + ResponseType Interest_ResponseType + func (*Interest) ProtoMessage() + func (m *Interest) Reset() + func (m *Interest) String() string + type Interest_ResponseType int32 + const Interest_DONTSEND + const Interest_JSON + const Interest_PROTOBUF + func (x Interest_ResponseType) String() string + type NonHashData struct + LocalLedgerCommitTimestamp *google_protobuf.Timestamp + TransactionResults []*TransactionResult + func (*NonHashData) ProtoMessage() + func (m *NonHashData) GetLocalLedgerCommitTimestamp() *google_protobuf.Timestamp + func (m *NonHashData) GetTransactionResults() []*TransactionResult + func (m *NonHashData) Reset() + func (m *NonHashData) String() string + type OpenchainClient interface + GetBlockByNumber func(ctx context.Context, in *BlockNumber, opts ...grpc.CallOption) (*Block, error) + GetBlockCount func(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*BlockCount, error) + GetBlockchainInfo func(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*BlockchainInfo, error) + func NewOpenchainClient(cc *grpc.ClientConn) OpenchainClient + type OpenchainEvent struct + Event isOpenchainEvent_Event + func (*OpenchainEvent) ProtoMessage() + func (*OpenchainEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...) + func (m *OpenchainEvent) GetBlock() *Block + func (m *OpenchainEvent) GetEvent() isOpenchainEvent_Event + func (m *OpenchainEvent) GetGeneric() *Generic + func (m *OpenchainEvent) GetRegister() *Register + func (m *OpenchainEvent) Reset() + func (m *OpenchainEvent) String() string + type OpenchainEvent_Block struct + Block *Block + type OpenchainEvent_Generic struct + Generic *Generic + type OpenchainEvent_Register struct + Register *Register + type OpenchainEventsClient interface + Chat func(ctx context.Context, opts ...grpc.CallOption) (OpenchainEvents_ChatClient, error) + func NewOpenchainEventsClient(cc *grpc.ClientConn) OpenchainEventsClient + type OpenchainEventsServer interface + Chat func(OpenchainEvents_ChatServer) error + type OpenchainEvents_ChatClient interface + Recv func() (*OpenchainEvent, error) + Send func(*OpenchainEvent) error + type OpenchainEvents_ChatServer interface + Recv func() (*OpenchainEvent, error) + Send func(*OpenchainEvent) error + type OpenchainMessage struct + Payload []byte + Signature []byte + Timestamp *google_protobuf.Timestamp + Type OpenchainMessage_Type + func (*OpenchainMessage) ProtoMessage() + func (m *OpenchainMessage) GetTimestamp() *google_protobuf.Timestamp + func (m *OpenchainMessage) Reset() + func (m *OpenchainMessage) String() string + type OpenchainMessage_Type int32 + const OpenchainMessage_CHAIN_GET_TRANSACTIONS + const OpenchainMessage_CHAIN_QUERY + const OpenchainMessage_CHAIN_STATUS + const OpenchainMessage_CHAIN_TRANSACTION + const OpenchainMessage_CONSENSUS + const OpenchainMessage_DISC_DISCONNECT + const OpenchainMessage_DISC_GET_PEERS + const OpenchainMessage_DISC_HELLO + const OpenchainMessage_DISC_NEWMSG + const OpenchainMessage_DISC_PEERS + const OpenchainMessage_RESPONSE + const OpenchainMessage_SYNC_BLOCKS + const OpenchainMessage_SYNC_BLOCK_ADDED + const OpenchainMessage_SYNC_GET_BLOCKS + const OpenchainMessage_SYNC_STATE_DELTAS + const OpenchainMessage_SYNC_STATE_GET_DELTAS + const OpenchainMessage_SYNC_STATE_GET_SNAPSHOT + const OpenchainMessage_SYNC_STATE_SNAPSHOT + const OpenchainMessage_UNDEFINED + func (x OpenchainMessage_Type) String() string + type OpenchainServer interface + GetBlockByNumber func(context.Context, *BlockNumber) (*Block, error) + GetBlockCount func(context.Context, *google_protobuf1.Empty) (*BlockCount, error) + GetBlockchainInfo func(context.Context, *google_protobuf1.Empty) (*BlockchainInfo, error) + type PeerAddress struct + Host string + Port int32 + func (*PeerAddress) ProtoMessage() + func (m *PeerAddress) Reset() + func (m *PeerAddress) String() string + type PeerClient interface + Chat func(ctx context.Context, opts ...grpc.CallOption) (Peer_ChatClient, error) + func NewPeerClient(cc *grpc.ClientConn) PeerClient + type PeerEndpoint struct + Address string + ID *PeerID + PkiID []byte + Type PeerEndpoint_Type + func (*PeerEndpoint) ProtoMessage() + func (m *PeerEndpoint) GetID() *PeerID + func (m *PeerEndpoint) Reset() + func (m *PeerEndpoint) String() string + type PeerEndpoint_Type int32 + const PeerEndpoint_NON_VALIDATOR + const PeerEndpoint_UNDEFINED + const PeerEndpoint_VALIDATOR + func (x PeerEndpoint_Type) String() string + type PeerID struct + Name string + func (*PeerID) ProtoMessage() + func (m *PeerID) Reset() + func (m *PeerID) String() string + type PeerServer interface + Chat func(Peer_ChatServer) error + type Peer_ChatClient interface + Recv func() (*OpenchainMessage, error) + Send func(*OpenchainMessage) error + type Peer_ChatServer interface + Recv func() (*OpenchainMessage, error) + Send func(*OpenchainMessage) error + type PeersMessage struct + Peers []*PeerEndpoint + func (*PeersMessage) ProtoMessage() + func (m *PeersMessage) GetPeers() []*PeerEndpoint + func (m *PeersMessage) Reset() + func (m *PeersMessage) String() string + type PutStateInfo struct + Key string + Value []byte + func (*PutStateInfo) ProtoMessage() + func (m *PutStateInfo) Reset() + func (m *PutStateInfo) String() string + type RangeQueryState struct + EndKey string + StartKey string + func (*RangeQueryState) ProtoMessage() + func (m *RangeQueryState) Reset() + func (m *RangeQueryState) String() string + type RangeQueryStateClose struct + ID string + func (*RangeQueryStateClose) ProtoMessage() + func (m *RangeQueryStateClose) Reset() + func (m *RangeQueryStateClose) String() string + type RangeQueryStateKeyValue struct + Key string + Value []byte + func (*RangeQueryStateKeyValue) ProtoMessage() + func (m *RangeQueryStateKeyValue) Reset() + func (m *RangeQueryStateKeyValue) String() string + type RangeQueryStateNext struct + ID string + func (*RangeQueryStateNext) ProtoMessage() + func (m *RangeQueryStateNext) Reset() + func (m *RangeQueryStateNext) String() string + type RangeQueryStateResponse struct + HasMore bool + ID string + KeysAndValues []*RangeQueryStateKeyValue + func (*RangeQueryStateResponse) ProtoMessage() + func (m *RangeQueryStateResponse) GetKeysAndValues() []*RangeQueryStateKeyValue + func (m *RangeQueryStateResponse) Reset() + func (m *RangeQueryStateResponse) String() string + type Register struct + Events []*Interest + func (*Register) ProtoMessage() + func (m *Register) GetEvents() []*Interest + func (m *Register) Reset() + func (m *Register) String() string + type Response struct + Msg []byte + Status Response_StatusCode + func (*Response) ProtoMessage() + func (m *Response) Reset() + func (m *Response) String() string + type Response_StatusCode int32 + const Response_FAILURE + const Response_SUCCESS + const Response_UNDEFINED + func (x Response_StatusCode) String() string + type Secret struct + EnrollId string + EnrollSecret string + func (*Secret) ProtoMessage() + func (m *Secret) Reset() + func (m *Secret) String() string + type ServerStatus struct + Status ServerStatus_StatusCode + func (*ServerStatus) ProtoMessage() + func (m *ServerStatus) Reset() + func (m *ServerStatus) String() string + type ServerStatus_StatusCode int32 + const ServerStatus_ERROR + const ServerStatus_PAUSED + const ServerStatus_STARTED + const ServerStatus_STOPPED + const ServerStatus_UNDEFINED + const ServerStatus_UNKNOWN + func (x ServerStatus_StatusCode) String() string + type SyncBlockRange struct + End uint64 + Start uint64 + func (*SyncBlockRange) ProtoMessage() + func (m *SyncBlockRange) Reset() + func (m *SyncBlockRange) String() string + type SyncBlocks struct + Blocks []*Block + Range *SyncBlockRange + func (*SyncBlocks) ProtoMessage() + func (m *SyncBlocks) GetBlocks() []*Block + func (m *SyncBlocks) GetRange() *SyncBlockRange + func (m *SyncBlocks) Reset() + func (m *SyncBlocks) String() string + type SyncStateDeltas struct + Deltas [][]byte + Range *SyncBlockRange + func (*SyncStateDeltas) ProtoMessage() + func (m *SyncStateDeltas) GetRange() *SyncBlockRange + func (m *SyncStateDeltas) Reset() + func (m *SyncStateDeltas) String() string + type SyncStateDeltasRequest struct + Range *SyncBlockRange + func (*SyncStateDeltasRequest) ProtoMessage() + func (m *SyncStateDeltasRequest) GetRange() *SyncBlockRange + func (m *SyncStateDeltasRequest) Reset() + func (m *SyncStateDeltasRequest) String() string + type SyncStateSnapshot struct + BlockNumber uint64 + Delta []byte + Request *SyncStateSnapshotRequest + Sequence uint64 + func (*SyncStateSnapshot) ProtoMessage() + func (m *SyncStateSnapshot) GetRequest() *SyncStateSnapshotRequest + func (m *SyncStateSnapshot) Reset() + func (m *SyncStateSnapshot) String() string + type SyncStateSnapshotRequest struct + CorrelationId uint64 + func (*SyncStateSnapshotRequest) ProtoMessage() + func (m *SyncStateSnapshotRequest) Reset() + func (m *SyncStateSnapshotRequest) String() string + type Transaction struct + Cert []byte + ChaincodeID []byte + ConfidentialityLevel ConfidentialityLevel + Metadata []byte + Nonce []byte + Payload []byte + Signature []byte + Timestamp *google_protobuf.Timestamp + Type Transaction_Type + Uuid string + func NewChaincodeDeployTransaction(chaincodeDeploymentSpec *ChaincodeDeploymentSpec, uuid string) (*Transaction, error) + func NewChaincodeExecute(chaincodeInvocationSpec *ChaincodeInvocationSpec, uuid string, ...) (*Transaction, error) + func NewTransaction(chaincodeID ChaincodeID, uuid string, function string, arguments []string) (*Transaction, error) + func (*Transaction) ProtoMessage() + func (m *Transaction) GetTimestamp() *google_protobuf.Timestamp + func (m *Transaction) Reset() + func (m *Transaction) String() string + func (transaction *Transaction) Bytes() ([]byte, error) + type TransactionBlock struct + Transactions []*Transaction + func (*TransactionBlock) ProtoMessage() + func (m *TransactionBlock) GetTransactions() []*Transaction + func (m *TransactionBlock) Reset() + func (m *TransactionBlock) String() string + type TransactionResult struct + Error string + ErrorCode uint32 + Result []byte + Uuid string + func (*TransactionResult) ProtoMessage() + func (m *TransactionResult) Reset() + func (m *TransactionResult) String() string + type Transaction_Type int32 + const Transaction_CHAINCODE_EXECUTE + const Transaction_CHAINCODE_NEW + const Transaction_CHAINCODE_QUERY + const Transaction_CHAINCODE_TERMINATE + const Transaction_CHAINCODE_UPDATE + const Transaction_UNDEFINED + func (x Transaction_Type) String() string