api

package
v0.0.0-...-bfcd41d Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBArtifacts

type DBArtifacts struct {
	Indexes           []string
	CollectionIndexes map[string][]string
}

DBArtifacts defines DB artifacts, including indexes

type Definition

type Definition struct {
	Name              string
	Hash              []byte
	Version           string
	CollectionConfigs *peer.CollectionConfigPackage
}

Definition captures the info about chaincode

type EventMgr

type EventMgr interface {
	HandleChaincodeDeploy(channelID string, ccDefs []*Definition) error
	ChaincodeDeployDone(channelID string)
}

EventMgr handles chaincode deploy events

type UserCC

type UserCC interface {
	scc.SelfDescribingSysCC

	// Version returns the version of this chaincode
	Version() string
	// GetDBArtifacts returns the DB artifacts for this chaincode along with those of the given collections
	GetDBArtifacts(collNames []string) map[string]*DBArtifacts
}

UserCC contains information about an in-process user chaincode

Jump to

Keyboard shortcuts

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