doc

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentCC

type DocumentCC struct {
	// contains filtered or unexported fields
}

DocumentCC is used to setup database, collection and indexes for documents

func New added in v0.1.1

func New(name string) *DocumentCC

New returns chaincode

func (*DocumentCC) Chaincode added in v0.1.1

func (cc *DocumentCC) Chaincode() shim.Chaincode

Chaincode returns the DocumentCC chaincode

func (*DocumentCC) GetDBArtifacts added in v0.1.1

func (cc *DocumentCC) GetDBArtifacts(collNames []string) map[string]*ccapi.DBArtifacts

GetDBArtifacts returns Couch DB indexes for the collections in this chaincode NOTE: All collections in this chaincode have the same indexes except for meta_data

func (*DocumentCC) Init

Init - nothing to do for now

func (*DocumentCC) Invoke

func (cc *DocumentCC) Invoke(stub shim.ChaincodeStubInterface) (resp pb.Response)

Invoke manages document lifecycle operations (write, read)

func (*DocumentCC) Name added in v0.1.1

func (cc *DocumentCC) Name() string

Name returns the name of this chaincode

func (*DocumentCC) Version added in v0.1.2

func (cc *DocumentCC) Version() string

Version returns the version of this chaincode

Jump to

Keyboard shortcuts

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