Documentation ¶
Index ¶
Constants ¶
View Source
const ( //invoke functions ArchiveByDate string = "archiveByDate" // keys ArchiveByTxDateKey string = "archive_by_tx_date" ChaincodeName string = "ascc" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveSysCC ¶
type ArchiveSysCC struct {
// contains filtered or unexported fields
}
func New ¶
func New(aclProvider aclmgmt.ACLProvider, policyChecker policy.PolicyChecker) *ArchiveSysCC
New returns an instance of ASCC. Typically this is called once per peer.
func (*ArchiveSysCC) Chaincode ¶
func (a *ArchiveSysCC) Chaincode() shim.Chaincode
func (*ArchiveSysCC) Init ¶
func (a *ArchiveSysCC) Init(stub shim.ChaincodeStubInterface) pb.Response
Init initializes ASCC
func (*ArchiveSysCC) Invoke ¶
func (a *ArchiveSysCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response
Invoke is called with args[0] contains the query function name, args[1] contains the chain ID, which is temporary for now until it is part of stub. Each function requires additional parameters as described below: # ArchiveByDate: Archive the block files which contains tx date before the specified date in args[2]
func (*ArchiveSysCC) Name ¶
func (a *ArchiveSysCC) Name() string
Click to show internal directories.
Click to hide internal directories.