{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.1.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package shadow\n\n## Types\n\n```go\ntype NewKeyPerInvoke struct {\n\tsync.Mutex\n\t// contains filtered or unexported fields\n}\n```\nNewKeyPerInvoke is the shadow implementation for  NewKeyPerInvoke in the parent package The shadow provides invoke arguments that are guaranteed to be result in unique ledger entries as long as the parameters to GetInvokeArgs are unique\n\n```go\nfunc (t *NewKeyPerInvoke) GetInvokeArgs(ccnum int, iter int) [][]byte\n```\nGetInvokeArgs get args for invoke based on chaincode ID and iteration num\n\n```go\nfunc (t *NewKeyPerInvoke) GetNumQueries(numInvokesCompletedSuccessfully int) int\n```\nGetNumQueries returns the number of queries shadow wants ccchecked to do. For our purpose, just do as many queries as there were invokes for.\n\n```go\nfunc (t *NewKeyPerInvoke) GetQueryArgs(ccnum int, iter int) [][]byte\n```\nGetQueryArgs returns the query for the iter to test against\n\n```go\nfunc (t *NewKeyPerInvoke) InitShadowCC(initArgs []string)\n```\nInitShadowCC initializes CC\n\n```go\nfunc (t *NewKeyPerInvoke) OverrideNumInvokes(numInvokesPlanned int) int\n```\nOverrideNumInvokes returns the number of invokes shadow wants accept users request, no override\n\n```go\nfunc (t *NewKeyPerInvoke) PostInvoke(args [][]byte, resp []byte) error\n```\nPostInvoke store the key/val for later verification\n\n```go\nfunc (t *NewKeyPerInvoke) Validate(args [][]byte, value []byte) error\n```\nValidate the key/val with mem storage\n\n","path":"github.com/eric-erki/https-hyperledger.org/examples/ccchecker/chaincodes/newkeyperinvoke/shadow","name":"shadow","synopsis":"","isRedistributable":true}
