ascc

package
v0.0.0-...-7491e2d Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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

Init initializes ASCC

func (*ArchiveSysCC) Invoke

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

Jump to

Keyboard shortcuts

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